From d034da0225f31747edcdf0c3ebc1d3008f55a5cf Mon Sep 17 00:00:00 2001 From: "David Grant (dgrant)" Date: Thu, 28 Sep 2006 04:11:06 +0000 Subject: net-mail/gmail-notify: Added a patch to make gmail-notify put 660 permissions on the ~/.notifier.conf file, so that the plaintext gmail password stored there isn't available for all the world to see svn path=/sunrise/; revision=1359 --- net-mail/gmail-notify/files/gmail-notify-conf-perms.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 net-mail/gmail-notify/files/gmail-notify-conf-perms.patch (limited to 'net-mail/gmail-notify/files') diff --git a/net-mail/gmail-notify/files/gmail-notify-conf-perms.patch b/net-mail/gmail-notify/files/gmail-notify-conf-perms.patch new file mode 100644 index 000000000..2aff2e5f6 --- /dev/null +++ b/net-mail/gmail-notify/files/gmail-notify-conf-perms.patch @@ -0,0 +1,15 @@ +diff -u gmail-notify.orig/GmailConfig.py gmail-notify/GmailConfig.py +--- gmail-notify.orig/GmailConfig.py 2006-09-25 23:23:50.000000000 -0700 ++++ gmail-notify/GmailConfig.py 2006-09-27 20:51:03.000000000 -0700 +@@ -237,7 +237,10 @@ + self.config.remove_option( "options", "gmailusername" ) + self.config.remove_option( "options", "gmailpassword" ) + +- self.config.write( open( self.loadedConfig, 'w' ) ) ++ fp=open(self.loadedConfig, 'w') ++ self.config.write(fp) ++ os.chmod(self.loadedConfig, 0600) ++ fp.close() + gtk.main_quit() + self.hide() + else: -- cgit v1.2.3-18-g5258