X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-gpgsigfetch;h=7e9ae132ce288887d756e0dedcbd89dc9a8a780e;hp=592b3198fe4da215694ebd97bdc1dfe4a1282a66;hb=2525bf73603cb6487cfcea096e2dc347ad360394;hpb=10ed90c0bd35fb4538ef4e1b28fce41052aa124f 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'):