]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/utmp.c: check parent PID too when looking for utmp entry
authorEvgeny Grin (Karlson2k) <k2k@drgrin.dev>
Thu, 10 Jul 2025 16:12:29 +0000 (18:12 +0200)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Sun, 13 Jul 2025 19:25:08 +0000 (21:25 +0200)
commit9195f3807dfaa2062bcb8f79c61efc1e1f6dba46
tree2d36b9e4c9b8f50195e2ef27b017fbd02e0d135a
parent36debf3ccfa33ea9f3b0e562a133a22d1bdc87bd
lib/utmp.c: check parent PID too when looking for utmp entry

'login' binary may fork itself before this check, so the entry may
contain parent PID instead of current process PID
lib/utmp.c