]> git.cworth.org Git - notmuch/blobdiff - test/test-lib.sh
test: use correct fqdn in passwd_sanitize()
[notmuch] / test / test-lib.sh
index ae65336350913f26c564b1ba574c365f41cb3d57..21dda2656dd4d54bca9ea0cacc58271c11cad1b5 100644 (file)
@@ -709,7 +709,7 @@ import os, sys, pwd, socket
 pw = pwd.getpwuid(os.getuid())
 user = pw.pw_name
 name = pw.pw_gecos.partition(",")[0]
-fqdn = socket.getfqdn()
+fqdn = socket.getaddrinfo(socket.gethostname(), 0, 0, socket.SOCK_STREAM, 0, socket.AI_CANONNAME)[0][3]
 
 for l in sys.stdin:
     if user: