From cabbd0c9ca318c55e45af5a9aa0d01fce936ccd4 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 2 Aug 2005 01:43:02 +0000 Subject: Only run fetchmail --configdump if umask succeeded. svn path=/trunk/; revision=4222 --- fetchmailconf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fetchmailconf.py') diff --git a/fetchmailconf.py b/fetchmailconf.py index ce493627..83e9ed7a 100755 --- a/fetchmailconf.py +++ b/fetchmailconf.py @@ -2044,9 +2044,9 @@ Usage: fetchmailconf [-d] [-f fetchmailrc] # want crackers to snoop password information out of the tempfile. tmpfile = tempfile.mktemp() if rcfile: - cmd = "umask 077; fetchmail -f " + rcfile + " --configdump --nosyslog >" + tmpfile + cmd = "umask 077 && fetchmail -f " + rcfile + " --configdump --nosyslog >" + tmpfile else: - cmd = "umask 077; fetchmail --configdump --nosyslog >" + tmpfile + cmd = "umask 077 && fetchmail --configdump --nosyslog >" + tmpfile try: s = os.system(cmd) -- cgit v1.2.3