cdown / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone

Blame SOURCES/0001-login-default-motd-file.patch

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