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:
Sören Tempel 2015-08-24 22:16:48 +02:00 committed by Denys Vlasenko
parent 864d1b7a15
commit d862717328

View File

@ -489,6 +489,7 @@ int login_main(int argc UNUSED_PARAM, char **argv)
}
#endif
if (access(".hushlogin", F_OK) != 0)
motd();
if (pw->pw_uid == 0)