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