Fix the log file chmodding (os.chmod() can't accept a string, apparently).
This commit is contained in:
1 parent
5fa03d54aa
commit
868f5bb328
1 file changed
+1
-1
+1
-1
@@ -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