From: Sören Tempel Date: Mon, 24 Aug 2015 20:16:48 +0000 (+0200) Subject: login: don't print motd if .hushlogin exists in users home X-Git-Tag: 1_24_0~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d86271732828117d32270e9f7b3d128d77e9fa57;p=oweals%2Fbusybox.git 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 Signed-off-by: Denys Vlasenko --- diff --git a/loginutils/login.c b/loginutils/login.c index b9d910331..1700cfcb5 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -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);