X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-gpgsigfetch;h=7e9ae132ce288887d756e0dedcbd89dc9a8a780e;hb=8624550fce6043ebb31ed8800550aa8a11c4dd44;hp=592b3198fe4da215694ebd97bdc1dfe4a1282a66;hpb=a86d975ac15e074f142c75ba5c74596be92e740d;p=mirror%2Fuserdir-ldap.git diff --git a/ud-gpgsigfetch b/ud-gpgsigfetch index 592b319..7e9ae13 100755 --- a/ud-gpgsigfetch +++ b/ud-gpgsigfetch @@ -1,12 +1,12 @@ #!/usr/bin/env python # -*- mode: python -*- -import string, re, time, ldap, getopt, sys, pwd, posix; +import string, re, time, ldap, getopt, sys, pwd, os; from userdir_gpg import *; Output = "extrakeys.gpg"; # Process options -AdminUser = pwd.getpwuid(posix.getuid())[0]; +AdminUser = pwd.getpwuid(os.getuid())[0]; (options, arguments) = getopt.getopt(sys.argv[1:], "o:") for (switch, val) in options: if (switch == '-o'):