summaryrefslogtreecommitdiff
path: root/debian/patches-applied
diff options
context:
space:
mode:
authorKees Cook <kees@debian.org>2011-10-13 13:08:28 -0700
committerSteve Langasek <vorlon@debian.org>2019-01-08 22:11:47 -0800
commitbb19334f8624b2e67fc3fd641fde3809b94f56df (patch)
treeeee9066c866131a2ca3305cf8190c9859cc584f2 /debian/patches-applied
parent17c73d8089c6ab8e83684551c35f71ca9f65afcb (diff)
debian/patches-applied/update-motd: correctly clear environment when
building motd.
Diffstat (limited to 'debian/patches-applied')
-rw-r--r--debian/patches-applied/update-motd8
1 files changed, 4 insertions, 4 deletions
diff --git a/debian/patches-applied/update-motd b/debian/patches-applied/update-motd
index 8c7b675a..1018a296 100644
--- a/debian/patches-applied/update-motd
+++ b/debian/patches-applied/update-motd
@@ -6,10 +6,10 @@ Authors: Dustin Kirkland <kirkland@canonical.com>
Upstream status: not yet submitted
-Index: pam-1.0.1/modules/pam_motd/pam_motd.c
+Index: pam-debian/modules/pam_motd/pam_motd.c
===================================================================
---- pam-1.0.1.orig/modules/pam_motd/pam_motd.c
-+++ pam-1.0.1/modules/pam_motd/pam_motd.c
+--- pam-debian.orig/modules/pam_motd/pam_motd.c 2011-10-10 16:21:50.998512220 -0700
++++ pam-debian/modules/pam_motd/pam_motd.c 2011-10-13 11:35:02.921398033 -0700
@@ -48,14 +48,38 @@
static char default_motd[] = DEFAULT_MOTD;
@@ -80,7 +80,7 @@ Index: pam-1.0.1/modules/pam_motd/pam_motd.c
+ Otherwise, the admin can force a static MOTD by breaking that symlink
+ and publishing into an /etc/motd text file. */
+ if ((stat("/etc/update-motd.d", &st) == 0) && S_ISDIR(st.st_mode)) {
-+ if (!system("run-parts --lsbsysinit /etc/update-motd.d > /var/run/motd.new"))
++ if (!system("/usr/bin/env -i PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin run-parts --lsbsysinit /etc/update-motd.d > /var/run/motd.new"))
+ rename("/var/run/motd.new", "/var/run/motd");
}