create logs and .gajim dir with 0700
This commit is contained in:
parent
25acbbe478
commit
5570639beb
|
@ -48,14 +48,14 @@ class Logger:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
elif not os.path.exists(LOGPATH):
|
elif not os.path.exists(LOGPATH):
|
||||||
print _('creating %s directory') % LOGPATH
|
print _('creating %s directory') % LOGPATH
|
||||||
os.mkdir(LOGPATH)
|
os.mkdir(LOGPATH, 0700)
|
||||||
else: # dot_gajim doesn't exist
|
else: # dot_gajim doesn't exist
|
||||||
if dot_gajim: # is '' on win9x so avoid that
|
if dot_gajim: # is '' on win9x so avoid that
|
||||||
print _('creating %s directory') % dot_gajim
|
print _('creating %s directory') % dot_gajim
|
||||||
os.mkdir(dot_gajim)
|
os.mkdir(dot_gajim, 0700)
|
||||||
if not os.path.isdir(LOGPATH):
|
if not os.path.isdir(LOGPATH):
|
||||||
print _('creating %s directory') % LOGPATH
|
print _('creating %s directory') % LOGPATH
|
||||||
os.mkdir(LOGPATH)
|
os.mkdir(LOGPATH, 0700)
|
||||||
|
|
||||||
def write(self, kind, msg, jid, show = None, tim = None):
|
def write(self, kind, msg, jid, show = None, tim = None):
|
||||||
if not tim:
|
if not tim:
|
||||||
|
|
Loading…
Reference in New Issue