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

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


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

Modified Files:
      Tag: regebro-windows_path_fix-branch
	zpasswd.py 
Log Message:
Replaced os.system("chmod") calls with the portable os.chmod() so it works under windows. 

=== Zope/zpasswd.py 1.18 => 1.18.6.1 ===
--- Zope/zpasswd.py:1.18	Thu Dec  5 14:46:23 2002
+++ Zope/zpasswd.py	Tue Dec 17 09:51:26 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=''):