[Zope-Checkins] CVS: Zope - zpasswd.py:1.18.6.2
Lennart Regebro
lennart@torped.se
Tue, 17 Dec 2002 14:20:41 -0500
Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv5215
Modified Files:
Tag: regebro-windows_path_fix-branch
zpasswd.py
Log Message:
Mode numbers should obviously be in octal...
=== Zope/zpasswd.py 1.18.6.1 => 1.18.6.2 ===
--- Zope/zpasswd.py:1.18.6.1 Tue Dec 17 09:51:26 2002
+++ Zope/zpasswd.py Tue Dec 17 14:20:40 2002
@@ -80,7 +80,7 @@
pw = pw + random.choice(pw_choices)
acfile.write('%s:%s' % (username, generate_passwd(pw, 'SHA')))
acfile.close()
- os.chmod(ac_path, 644)
+ os.chmod(ac_path, 0644)
return pw
def write_access(home, user='', group=''):