X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-gpgimport;fp=ud-gpgimport;h=4b43bc75b47b2144982b896b52235e7ef4205586;hp=500f9654ce7a535a5be644c3e1624401b2a703ea;hb=2525bf73603cb6487cfcea096e2dc347ad360394;hpb=10ed90c0bd35fb4538ef4e1b28fce41052aa124f diff --git a/ud-gpgimport b/ud-gpgimport index 500f965..4b43bc7 100755 --- a/ud-gpgimport +++ b/ud-gpgimport @@ -14,7 +14,7 @@ # in the directory but not in the key ring will be removed from the # directory. -import string, re, time, ldap, getopt, sys, pwd, posix; +import string, re, time, ldap, getopt, sys, pwd, os; from userdir_ldap import *; from userdir_gpg import *; @@ -35,7 +35,7 @@ def LoadOverride(File): UnknownMap[Split[0]] = string.strip(Split[1]); # Process options -AdminUser = pwd.getpwuid(posix.getuid())[0]; +AdminUser = pwd.getpwuid(os.getuid())[0]; (options, arguments) = getopt.getopt(sys.argv[1:], "au:m:n") for (switch, val) in options: if (switch == '-u'):