]> 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>
Tue, 16 Feb 2010 08:58:57 +0000 (09:58 +0100)
commit4fc8d6fbb7a2319a76119089ad5878f89d699b29
tree2c83ff3db611fc45ce2fac6a980c6dbf3de595c8
parent261671a59af7111a3725a7774b24b77fbf647128
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