[Zope-Checkins] CVS: Zope - zpasswd.py:1.19

Lennart Regebro lennart@torped.se
Tue, 17 Dec 2002 09:57:52 -0500


Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv1817

Modified Files:
	zpasswd.py 
Log Message:
Some calls to os.system('chmod') has been replaced with the more portable os.chmod() call, to make install work properly on Windows.


=== Zope/zpasswd.py 1.18 => 1.19 ===
--- Zope/zpasswd.py:1.18	Thu Dec  5 14:46:23 2002
+++ Zope/zpasswd.py	Tue Dec 17 09:57:52 2002
@@ -80,7 +80,7 @@
         pw = pw + random.choice(pw_choices)
     acfile.write('%s:%s' % (username, generate_passwd(pw, 'SHA')))
     acfile.close()
-    os.system('chmod 644 %s' % ac_path)
+    os.chmod(ac_path, 644)
     return pw
 
 def write_access(home, user='', group=''):