summaryrefslogtreecommitdiff
path: root/libbb/full_write.c
diff options
context:
space:
mode:
authorJoachim Nilsson2020-05-09 13:03:55 +0200
committerDenys Vlasenko2020-11-16 12:09:53 +0100
commita4747230abfca9c5b5345d9e34574b4f3192be6a (patch)
treee0c4e6b0369027760ac609fe95f60b5f61f2c864 /libbb/full_write.c
parent5323af7f51808d5ff35c624ba70bdae4807f3717 (diff)
downloadbusybox-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/full_write.c')
0 files changed, 0 insertions, 0 deletions