chmod in the correct place
This commit is contained in:
parent
6e29a8b524
commit
92903afd4c
1 changed files with 1 additions and 3 deletions
|
@ -78,7 +78,6 @@ class OptionsParser:
|
||||||
err_str = _('Unable to write file in %s') % base_dir
|
err_str = _('Unable to write file in %s') % base_dir
|
||||||
print err_str
|
print err_str
|
||||||
return err_str
|
return err_str
|
||||||
os.chmod(self.__filename, 0600)
|
|
||||||
try:
|
try:
|
||||||
gajim.config.foreach(self.write_line, fd)
|
gajim.config.foreach(self.write_line, fd)
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
|
@ -95,5 +94,4 @@ class OptionsParser:
|
||||||
os.rename(self.__tempfile, self.__filename)
|
os.rename(self.__tempfile, self.__filename)
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
return e.errno
|
return e.errno
|
||||||
return None
|
os.chmod(self.__filename, 0600)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue