]> git.ipfire.org Git - thirdparty/shadow.git/commit
* NEWS, libmisc/chowntty.c, libmisc/utmp.c: is_my_tty() moved from
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 22 Nov 2008 23:54:54 +0000 (23:54 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 22 Nov 2008 23:54:54 +0000 (23:54 +0000)
commit6b5da98d14bd90146372ed6b876ff3e735dbcf1e
tree39029aec49bdb453b36dd638d916d841a9ce5217
parent02e7ca603c2908b5dd668d2e6bbf99c3f31d28cd
* NEWS, libmisc/chowntty.c, libmisc/utmp.c: is_my_tty() moved from
utmp.c to chowntty.c. checkutmp() now only uses an existing utmp
entry if the pid matches and ut_line matches with the current tty.
This fixes a possible DOS when entries can be forged in the utmp
file.
* libmisc/chowntty.c, src/login.c, lib/prototypes.h: Remove the
tty argument from chown_tty. chown_tty always changes stdin and
does not need this argument anymore.
ChangeLog
NEWS
lib/prototypes.h
libmisc/chowntty.c
libmisc/utmp.c
src/login.c