aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-27 04:51:01 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-27 04:51:01 +0000
commitcdcfb1a6c7df6557818c840f6a6897059e1b539b (patch)
tree6ba5eb19e2109c0aec34ccbdcf68f11a69791128 /driver.c
parentf4afe8b0b1fb6eda4684e68071d9c751b5642f38 (diff)
downloadfetchmail-cdcfb1a6c7df6557818c840f6a6897059e1b539b.tar.gz
fetchmail-cdcfb1a6c7df6557818c840f6a6897059e1b539b.tar.bz2
fetchmail-cdcfb1a6c7df6557818c840f6a6897059e1b539b.zip
Correct the defaults logic.
svn path=/trunk/; revision=398
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/driver.c b/driver.c
index 32f8c6fc..ecdff84d 100644
--- a/driver.c
+++ b/driver.c
@@ -555,10 +555,11 @@ struct query *ctl; /* query control record */
}
/* if nothing supplied localnames, default appropriately */
- if (getuid() == 0)
- save_uid(&xmit_names, -1, ctl->remotename);
- else
- save_uid(&xmit_names, -1, user);
+ if (!xmit_names)
+ if (getuid() == 0)
+ save_uid(&xmit_names, -1, ctl->remotename);
+ else
+ save_uid(&xmit_names, -1, user);
/* time to address the message */
if (ctl->mda[0]) /* we have a declared MDA */