]> git.ipfire.org Git - thirdparty/util-linux.git/commit
login: rewrite motd(), use MOTD_FILE from login.defs
authorKarel Zak <kzak@redhat.com>
Wed, 5 Oct 2011 11:30:52 +0000 (13:30 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 26 Oct 2011 21:17:17 +0000 (23:17 +0200)
commit4d8fc09c27d178eb187544270eeeebb0cd16ab36
tree2f02ae0550179bbb65b207a5469939385ac94c6e
parent7d6b450d7b12a8073845d52b9f2fafb970b79c4d
login: rewrite motd(), use MOTD_FILE from login.defs

Note that Suse login(1) does not use any default for MOTD_FILE, so
MOTD_FILE item in login.defs is required otherwise nothing is printed.

We use (for backward compatibility) /etc/motd as default.

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