[Zope-Checkins] CVS: Zope - zpasswd.py:1.20
Lennart Regebro
lennart@torped.se
Tue, 17 Dec 2002 14:42:40 -0500
Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv8180
Modified Files:
zpasswd.py
Log Message:
Mode numbers should be in octal. My bad.
=== Zope/zpasswd.py 1.19 => 1.20 ===
--- Zope/zpasswd.py:1.19 Tue Dec 17 09:57:52 2002
+++ Zope/zpasswd.py Tue Dec 17 14:42:39 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=''):