From 4866b7178614e7db0de15212e5846e1a5656211a Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Fri, 7 Sep 2018 09:47:25 +0200 Subject: 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 --- include/pathnames.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3-55-g7522