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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user