aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf.py
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-08-02 01:43:02 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-08-02 01:43:02 +0000
commitcabbd0c9ca318c55e45af5a9aa0d01fce936ccd4 (patch)
tree3abd09f99b5bfbb576e7e7f802377eece014e0d9 /fetchmailconf.py
parentcde688898f9d627abfe0ace51b8548d2ecc006f3 (diff)
downloadfetchmail-cabbd0c9ca318c55e45af5a9aa0d01fce936ccd4.tar.gz
fetchmail-cabbd0c9ca318c55e45af5a9aa0d01fce936ccd4.tar.bz2
fetchmail-cabbd0c9ca318c55e45af5a9aa0d01fce936ccd4.zip
Only run fetchmail --configdump if umask succeeded.
svn path=/trunk/; revision=4222
Diffstat (limited to 'fetchmailconf.py')
-rwxr-xr-xfetchmailconf.py4
1 files changed, 2 insertions, 2 deletions
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)