login: keep default MOTD_FILE= backwardly compatible

It seems that directories like /etc/motd.d are already used by PAM or
by another stuff. Let's keep it in admin/distro hands and do not
change the current default.

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2020-05-12 15:37:39 +02:00
parent 9789d21a96
commit 72b155ea6e
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@
#ifndef _PATH_MAILDIR
# define _PATH_MAILDIR "/var/spool/mail"
#endif
#define _PATH_MOTDFILE "/usr/share/misc/motd:/run/motd:/run/motd.d:/etc/motd:/etc/motd.d"
#define _PATH_MOTDFILE "/usr/share/misc/motd:/run/motd:/etc/motd"
#ifndef _PATH_NOLOGIN
# define _PATH_NOLOGIN "/etc/nologin"
#endif

View File

@ -156,7 +156,7 @@ to be displayed upon login. If the specified path is a directory then displays
all files with .motd file extension in version-sort order from the directory.
.PP
The default value is
.IR "/usr/share/misc/motd:/run/motd:/run/motd.d:/etc/motd:/etc/motd.d" .
.IR "/usr/share/misc/motd:/run/motd:/etc/motd" .
If the
.B MOTD_FILE
item is empty or a quiet login is enabled, then the message of the day