673c78
From c8574869e60a0351551cb281872e08b4d8fc68d8 Mon Sep 17 00:00:00 2001
673c78
From: Karel Zak <kzak@redhat.com>
673c78
Date: Tue, 24 Aug 2021 13:50:57 +0200
673c78
Subject: login: default motd file
673c78
673c78
Add `/run/motd.d` to the hardcoded MOTD_FILE
673c78
673c78
Addresses: https://github.com/coreos/console-login-helper-messages/issues/60
673c78
---
673c78
 include/pathnames.h | 2 +-
673c78
 1 file changed, 1 insertion(+), 1 deletion(-)
673c78
673c78
diff --git a/include/pathnames.h b/include/pathnames.h
673c78
index 9be2baa83..7e7d9053f 100644
673c78
--- a/include/pathnames.h
673c78
+++ b/include/pathnames.h
673c78
@@ -41,7 +41,7 @@
673c78
 #ifndef _PATH_MAILDIR
673c78
 # define _PATH_MAILDIR		"/var/spool/mail"
673c78
 #endif
673c78
-#define	_PATH_MOTDFILE		"/usr/share/misc/motd:/run/motd:/etc/motd"
673c78
+#define	_PATH_MOTDFILE		"/usr/share/misc/motd:/run/motd:/run/motd.d:/etc/motd:/etc/motd.d"
673c78
 #ifndef _PATH_NOLOGIN
673c78
 # define _PATH_NOLOGIN		"/etc/nologin"
673c78
 #endif
673c78
-- 
673c78
2.34.1
673c78