1
0
mirror of https://github.com/gryf/wicd.git synced 2026-02-24 19:25:46 +01:00

added forgotten underscores

This commit is contained in:
Adam Blackburn
2009-06-16 23:57:02 +08:00
parent 6b7bfed11f
commit 1c761ca232

View File

@@ -1671,13 +1671,13 @@ 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.logperms) os.chmod(logpath, wpath.log_perms)
if wpath.loggroup: if wpath.log_group:
import grp import grp
group = grp.getgrnam(wpath.loggroup) group = grp.getgrnam(wpath.log_group)
os.chown(logpath, 0, group[2]) os.chown(logpath, 0, group[2])
except: except:
print 'unable to chmod log file to %s' % wpath.logperms print 'unable to chmod log file to %s' % wpath.log_perms
if redirect_stdout: sys.stdout = output if redirect_stdout: sys.stdout = output
if redirect_stderr: sys.stderr = output if redirect_stderr: sys.stderr = output