]> git.ipfire.org Git - thirdparty/util-linux.git/commit - login-utils/login.c
login: use open(2) rather then access(2) for $HOME/.hushlogin
authorKarel Zak <kzak@redhat.com>
Fri, 10 Apr 2009 09:02:24 +0000 (11:02 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 10 Apr 2009 09:15:10 +0000 (11:15 +0200)
commit3c0e680cc2e3df6503f96eeea347eaa957386224
treea48ebfa1bbfd20364c305aa4e507cdcb13f2003c
parent402e79581305554863f3e9ba4b0c2dc9a3df08d6
login: use open(2) rather then access(2) for $HOME/.hushlogin

As an NFS client with home directories on mounted NFS share - If the
NFS server exports the share with default root squashed, login cannot
access the filesystem to check for the existence of .hushlogin file.

It seems better to use open(2) rather than access(2).

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.c