aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/driver.c b/driver.c
index 50eb8039..9b0aee0f 100644
--- a/driver.c
+++ b/driver.c
@@ -360,17 +360,11 @@ struct query *ctl; /* query control record */
/* if nothing supplied localnames, default appropriately */
if (!xmit_names)
{
- char *dflt;
-
- if (getuid() == 0)
- dflt = ctl->remotename;
- else
- dflt = user;
- save_uid(&xmit_names, -1, dflt);
+ save_uid(&xmit_names, -1, user);
if (outlevel == O_VERBOSE)
fprintf(stderr,
"fetchmail: no local matches, forwarding to %s\n",
- dflt);
+ user);
}
/* time to address the message */