mirror of
https://github.com/gryf/wicd.git
synced 2026-03-11 12:05:51 +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)
|
output = ManagedStdio(logpath)
|
||||||
if os.path.exists(logpath):
|
if os.path.exists(logpath):
|
||||||
try:
|
try:
|
||||||
os.chmod(logpath, wpath.log_perms)
|
os.chmod(logpath, int(wpath.log_perms,8))
|
||||||
except:
|
except:
|
||||||
print 'unable to chmod log file to %s' % wpath.log_perms
|
print 'unable to chmod log file to %s' % wpath.log_perms
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user