diff options
author | Joachim Nilsson | 2020-05-09 13:03:55 +0200 |
---|---|---|
committer | Denys Vlasenko | 2020-11-16 12:09:53 +0100 |
commit | a4747230abfca9c5b5345d9e34574b4f3192be6a (patch) | |
tree | e0c4e6b0369027760ac609fe95f60b5f61f2c864 /libbb/copyfd.c | |
parent | 5323af7f51808d5ff35c624ba70bdae4807f3717 (diff) | |
download | busybox-a4747230abfca9c5b5345d9e34574b4f3192be6a.zip busybox-a4747230abfca9c5b5345d9e34574b4f3192be6a.tar.gz |
login: update UTMP before forking
/bin/login updates the preliminary UTMP record created by /bin/getty for
$LOGNAME. However, if the PID of login is not the same as getty, then
it will create a new entry. This causes GLIBC getlogin(3) to return the
string 'LOGIN' (set by getty) instead of $LOGNAME. This affects tools
like /usr/bin/logname but also various 3rd party PAM applications.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/copyfd.c')
0 files changed, 0 insertions, 0 deletions