[Bug 38631] Re: password visible

Dennis Kaarsemaker dennis at kaarsemaker.net
Sat Apr 8 21:38:08 UTC 2006


Fairy trivial patch:

--- gmail-notify-1.6.1/GmailConfig.py   2005-09-25 19:12:11.000000000 +0200
+++ gmail-notify-1.6.1.new/GmailConfig.py       2006-04-08 23:36:53.000000000 +0200
@@ -237,7 +237,10 @@
                                self.config.remove_option( "options", "gmailusername" )
                                self.config.remove_option( "options", "gmailpassword" )

-                       self.config.write( open( self.loadedConfig, 'w' ) )
+                       fd = open( self.loadedConfig, 'w' )
+            os.chmod( self.loadedConfig, 0600)
+                       self.config.write( fd )
+            fd.close()
                        gtk.main_quit()
                        self.hide()
                else:

-- 
password visible
https://launchpad.net/malone/bugs/38631




More information about the universe-bugs mailing list