diff options
author | 2006-09-28 04:11:06 +0000 | |
---|---|---|
committer | 2006-09-28 04:11:06 +0000 | |
commit | d034da0225f31747edcdf0c3ebc1d3008f55a5cf (patch) | |
tree | 04604ac8dbeeeccc5101a08f6037ddb5bdca9d5e /net-mail/gmail-notify/files | |
parent | net-misc/blocksshd: Aesthetic changes. (diff) | |
download | sunrise-d034da0225f31747edcdf0c3ebc1d3008f55a5cf.tar.gz sunrise-d034da0225f31747edcdf0c3ebc1d3008f55a5cf.tar.bz2 sunrise-d034da0225f31747edcdf0c3ebc1d3008f55a5cf.zip |
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
Diffstat (limited to 'net-mail/gmail-notify/files')
-rw-r--r-- | net-mail/gmail-notify/files/gmail-notify-conf-perms.patch | 15 |
1 files changed, 15 insertions, 0 deletions
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: |