From: jgg <> Date: Fri, 24 Sep 1999 23:17:00 +0000 (+0000) Subject: Fixed perms problem and mail aliases X-Git-Tag: debian_userdir-ldap_0-3-7~227 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=9faf24404f56567aba452ea8263d6194bc594002 Fixed perms problem and mail aliases --- diff --git a/ud-generate b/ud-generate index a0d5d7c..d1773ff 100755 --- a/ud-generate +++ b/ud-generate @@ -174,8 +174,10 @@ def GenForward(l,File,Allowed): F = None; Fdb = None; try: - F = open(File + ".tmp","w"); + OldMask = os.umask(0022); + F = open(File + ".tmp","w",0644); Fdb = None; + os.umask(OldMask); # Fetch all the users global PasswdAttrs;