From c71c95b401a49a69281af562062375c85592074d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 12 Mar 2001 04:54:10 +0000 Subject: Security fix. svn path=/trunk/; revision=3240 --- fetchmailconf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fetchmailconf') diff --git a/fetchmailconf b/fetchmailconf index 7181de34..c935e4f6 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -4,11 +4,11 @@ # by Eric S. Raymond, . # 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: -- cgit v1.2.3