[git commit] login: don't print motd if .hushlogin exists in users home
Denys Vlasenko
vda.linux at googlemail.com
Mon Aug 24 20:16:48 UTC 2015
commit: http://git.busybox.net/busybox/commit/?id=d86271732828117d32270e9f7b3d128d77e9fa57
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
function old new delta
login_main 978 996 +18
Signed-off-by: Sören Tempel <soeren at soeren-tempel.net>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
loginutils/login.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/loginutils/login.c b/loginutils/login.c
index b9d9103..1700cfc 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);
More information about the busybox-cvs
mailing list