chmod in the correct place

This commit is contained in:
Nikos Kouremenos 2005-08-23 09:30:54 +00:00
parent 6e29a8b524
commit 92903afd4c
1 changed files with 1 additions and 3 deletions

View File

@ -78,7 +78,6 @@ class OptionsParser:
err_str = _('Unable to write file in %s') % base_dir
print err_str
return err_str
os.chmod(self.__filename, 0600)
try:
gajim.config.foreach(self.write_line, fd)
except IOError, e:
@ -95,5 +94,4 @@ class OptionsParser:
os.rename(self.__tempfile, self.__filename)
except IOError, e:
return e.errno
return None
os.chmod(self.__filename, 0600)