]> err.no Git - util-linux/commit
login: use fd instead of pathname for update tty's owner and permissions
authorYann Droneaud <yann@droneaud.fr>
Mon, 25 Jan 2010 22:12:09 +0000 (23:12 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 28 Jan 2010 14:24:38 +0000 (15:24 +0100)
commit453b36147bcd58962fade1cac76ddebecfa2caf6
treef86dd4de7fc34fe2ca34e9c91fdd5206ce7e8023
parentf00aae6d7b6690e030a6596a6fcf9be6f260b8c5
login: use fd instead of pathname for update tty's owner and permissions

To avoid some nasty races, use the only true tty:
the one already opened, don't use the path.

Signed-off-by: Yann Droneaud <yann@droneaud.fr>
login-utils/login.c