1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-04 21:04:15 +01:00

Fix the log file chmodding (os.chmod() can't accept a string, apparently).

This commit is contained in:
Andrew Psaltis
2009-06-20 23:46:38 -04:00
parent 5fa03d54aa
commit 868f5bb328

View File

@@ -1684,7 +1684,7 @@ def main(argv):
output = ManagedStdio(logpath)
if os.path.exists(logpath):
try:
os.chmod(logpath, wpath.log_perms)
os.chmod(logpath, int(wpath.log_perms,8))
except:
print 'unable to chmod log file to %s' % wpath.log_perms