diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-03-12 04:54:10 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-03-12 04:54:10 +0000 |
commit | c71c95b401a49a69281af562062375c85592074d (patch) | |
tree | 6c59955027eeab542a33b355ba14dcfbce42ff0e /fetchmailconf | |
parent | 979b46e876bc6cc257ce0d48baf601bc44da8cba (diff) | |
download | fetchmail-c71c95b401a49a69281af562062375c85592074d.tar.gz fetchmail-c71c95b401a49a69281af562062375c85592074d.tar.bz2 fetchmail-c71c95b401a49a69281af562062375c85592074d.zip |
Security fix.
svn path=/trunk/; revision=3240
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-x | fetchmailconf | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fetchmailconf b/fetchmailconf index 7181de34..c935e4f6 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -4,11 +4,11 @@ # by Eric S. Raymond, <esr@snark.thyrsus.com>. # Requires Python with Tkinter, and the following OS-dependent services: # posix, posixpath, socket -version = "1.34" +version = "1.35" from Tkinter import * from Dialog import * -import sys, time, os, string, socket, getopt +import sys, time, os, string, socket, getopt, tempfile # # Define the data structures the GUIs will be tossing around @@ -1923,7 +1923,7 @@ gUSiYASJpMEHhilJTEnhAlGoQqYAZQ1AiqEMZ0jDGtqQImhwwA13yMMevoQAGvGhEAWHGMOAAAA7 # Read the existing configuration. We set the umask to 077 to make sure # that group & other read/write permissions are shut off -- we wouldn't # want crackers to snoop password information out of the tempfile. - tmpfile = "/tmp/fetchmailconf." + `os.getpid()` + tmpfile = tempfile.mktemp() if rcfile: cmd = "umask 077; fetchmail -f " + rcfile + " --configdump --nosyslog >" + tmpfile else: |