]> Pileus Git - ~andy/fetchmail/commitdiff
Correct the defaults logic.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 27 Oct 1996 04:51:01 +0000 (04:51 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 27 Oct 1996 04:51:01 +0000 (04:51 -0000)
svn path=/trunk/; revision=398

driver.c

index 32f8c6fc585346e4aca6b04f88f4c9c28bf7904b..ecdff84d9d97f46ec089396f7dee14e8cab1420b 100644 (file)
--- 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 */