summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLudwig Nussel2018-09-07 09:47:25 +0200
committerLudwig Nussel2018-09-07 09:47:25 +0200
commit4866b7178614e7db0de15212e5846e1a5656211a (patch)
tree930dcb94a9f32344af66f80fd09a981d3a3fc158 /include
parentscript: be sensitive to another SIGCHLD ssi_codes (diff)
downloadkernel-qcow2-util-linux-4866b7178614e7db0de15212e5846e1a5656211a.tar.gz
kernel-qcow2-util-linux-4866b7178614e7db0de15212e5846e1a5656211a.tar.xz
kernel-qcow2-util-linux-4866b7178614e7db0de15212e5846e1a5656211a.zip
Add built in fallbacks for motd file
Use several locations for built in default for motd to allow for e.g. run time generated motd without having to modify config files. login.c already splits by colon. /usr/share/misc/motd - chould be shipped by distributions /run/motd - potentially run time created file with dynamic information /etc/motd - for the admin fill with local information Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/pathnames.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pathnames.h b/include/pathnames.h
index abf0cdee9..3d5052e6f 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -43,7 +43,7 @@
#ifndef _PATH_MAILDIR
# define _PATH_MAILDIR "/var/spool/mail"
#endif
-#define _PATH_MOTDFILE "/etc/motd"
+#define _PATH_MOTDFILE "/usr/share/misc/motd:/run/motd:/etc/motd"
#ifndef _PATH_NOLOGIN
# define _PATH_NOLOGIN "/etc/nologin"
#endif