2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

Remove special handling of the USERNAME environment variable. It

used to be set on old versions of Fedora but that hasn't been the
case for some time.  It's worth noting that ssh doesn't set USERNAME
either.
This commit is contained in:
Todd C. Miller
2018-09-24 05:30:03 -06:00
parent ce9a7dd25a
commit 5f61f2c0f4
9 changed files with 58 additions and 98 deletions

View File

@@ -637,8 +637,10 @@ send_mail(const char *fmt, ...)
"HOME=/",
"PATH=/usr/bin:/bin:/usr/sbin:/sbin",
"LOGNAME=root",
"USERNAME=root",
"USER=root",
# ifdef _AIX
"LOGIN=root",
# endif
NULL
};
#endif /* NO_ROOT_MAILER */