2.36.1-4: Add patch to add /run/motd.d to default MOTD_FILE in login(1)
This commit is contained in:
parent
b188598d35
commit
1c853c1f4b
13
login-default-motd-file.patch
Normal file
13
login-default-motd-file.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/include/pathnames.h b/include/pathnames.h
|
||||||
|
index 3845d4c33..fac3a0783 100644
|
||||||
|
--- a/include/pathnames.h
|
||||||
|
+++ b/include/pathnames.h
|
||||||
|
@@ -41,7 +41,7 @@
|
||||||
|
#ifndef _PATH_MAILDIR
|
||||||
|
# define _PATH_MAILDIR "/var/spool/mail"
|
||||||
|
#endif
|
||||||
|
-#define _PATH_MOTDFILE "/usr/share/misc/motd:/run/motd:/etc/motd"
|
||||||
|
+#define _PATH_MOTDFILE "/usr/share/misc/motd:/run/motd:/run/motd.d:/etc/motd:/etc/motd.d"
|
||||||
|
#ifndef _PATH_NOLOGIN
|
||||||
|
# define _PATH_NOLOGIN "/etc/nologin"
|
||||||
|
#endif
|
@ -2,7 +2,7 @@
|
|||||||
Summary: A collection of basic system utilities
|
Summary: A collection of basic system utilities
|
||||||
Name: util-linux
|
Name: util-linux
|
||||||
Version: 2.36.1
|
Version: 2.36.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain
|
License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain
|
||||||
URL: http://en.wikipedia.org/wiki/Util-linux
|
URL: http://en.wikipedia.org/wiki/Util-linux
|
||||||
|
|
||||||
@ -110,6 +110,9 @@ Patch0: login-lastlog-create.patch
|
|||||||
Patch1: libmount-remove-read-mountinfo-workaround.patch
|
Patch1: libmount-remove-read-mountinfo-workaround.patch
|
||||||
# usptream patch, https://github.com/karelzak/util-linux/issues/1193
|
# usptream patch, https://github.com/karelzak/util-linux/issues/1193
|
||||||
Patch2: libmount-don-t-use-symfollow-for-helpers-on-user-mou.patch
|
Patch2: libmount-don-t-use-symfollow-for-helpers-on-user-mou.patch
|
||||||
|
# Add `/run/motd.d` to the hardcoded MOTD_FILE
|
||||||
|
# https://github.com/coreos/console-login-helper-messages/issues/60
|
||||||
|
Patch3: login-default-motd-file.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The util-linux package contains a large variety of low-level system
|
The util-linux package contains a large variety of low-level system
|
||||||
@ -945,6 +948,9 @@ fi
|
|||||||
%{_libdir}/python*/site-packages/libmount/
|
%{_libdir}/python*/site-packages/libmount/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 27 2021 Kelvin Fan <kfan@redhat.com> - 2.36.1-4
|
||||||
|
- Add patch to add /run/motd.d to default MOTD_FILE in login(1)
|
||||||
|
|
||||||
* Thu Jan 14 2021 Karel Zak <kzak@redhat.com> - 2.36.1-3
|
* Thu Jan 14 2021 Karel Zak <kzak@redhat.com> - 2.36.1-3
|
||||||
- improve uuidd scriptlets (fix #1767553)
|
- improve uuidd scriptlets (fix #1767553)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user