diff options
Diffstat (limited to 'mailutils/sendmail.c')
-rw-r--r-- | mailutils/sendmail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mailutils/sendmail.c b/mailutils/sendmail.c index 55555c326..b027f94d2 100644 --- a/mailutils/sendmail.c +++ b/mailutils/sendmail.c | |||
@@ -172,7 +172,7 @@ int sendmail_main(int argc UNUSED_PARAM, char **argv) | |||
172 | // got no sender address? -> use system username as a resort | 172 | // got no sender address? -> use system username as a resort |
173 | if (!(opts & OPT_f)) { | 173 | if (!(opts & OPT_f)) { |
174 | // N.B. IMHO getenv("USER") can be way easily spoofed! | 174 | // N.B. IMHO getenv("USER") can be way easily spoofed! |
175 | G.user = bb_getpwuid(NULL, -1, getuid()); | 175 | G.user = xuid2uname(getuid()); |
176 | opt_from = xasprintf("%s@%s", G.user, domain); | 176 | opt_from = xasprintf("%s@%s", G.user, domain); |
177 | } | 177 | } |
178 | if (ENABLE_FEATURE_CLEAN_UP) | 178 | if (ENABLE_FEATURE_CLEAN_UP) |