mirror of
https://github.com/sheumann/hush.git
synced 2025-01-10 16:29:44 +00:00
login: don't print motd if .hushlogin exists in users home
function old new delta login_main 978 996 +18 Signed-off-by: Sören Tempel <soeren@soeren-tempel.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
864d1b7a15
commit
d862717328
@ -489,7 +489,8 @@ int login_main(int argc UNUSED_PARAM, char **argv)
|
||||
}
|
||||
#endif
|
||||
|
||||
motd();
|
||||
if (access(".hushlogin", F_OK) != 0)
|
||||
motd();
|
||||
|
||||
if (pw->pw_uid == 0)
|
||||
syslog(LOG_INFO, "root login%s", fromhost);
|
||||
|
Loading…
x
Reference in New Issue
Block a user