From 92903afd4ca9e858a378352ad5a27f342e284f29 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 23 Aug 2005 09:30:54 +0000 Subject: [PATCH] chmod in the correct place --- src/common/optparser.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/optparser.py b/src/common/optparser.py index a235db1ea..95ff174e5 100644 --- a/src/common/optparser.py +++ b/src/common/optparser.py @@ -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)