diff options
author | Steve Langasek <vorlon@debian.org> | 2009-07-15 20:05:56 -0700 |
---|---|---|
committer | Steve Langasek <vorlon@debian.org> | 2019-01-08 19:41:20 -0800 |
commit | ec965a4b45637d5d3a1792b9152f004941f11f81 (patch) | |
tree | c51d1030fe52574413c0a3593f5c695950afd142 | |
parent | bad2705f9dc9c772aa3084f9572217fc5b1f6431 (diff) | |
download | pam-ec965a4b45637d5d3a1792b9152f004941f11f81.tar.gz pam-ec965a4b45637d5d3a1792b9152f004941f11f81.tar.bz2 pam-ec965a4b45637d5d3a1792b9152f004941f11f81.zip |
correct a typo in the update-motd patch, introduced by me :(
-rw-r--r-- | debian/patches-applied/update-motd | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/debian/patches-applied/update-motd b/debian/patches-applied/update-motd index 448e3c14..8c7b675a 100644 --- a/debian/patches-applied/update-motd +++ b/debian/patches-applied/update-motd @@ -6,15 +6,15 @@ Authors: Dustin Kirkland <kirkland@canonical.com> Upstream status: not yet submitted -Index: pam.deb/modules/pam_motd/pam_motd.c +Index: pam-1.0.1/modules/pam_motd/pam_motd.c =================================================================== ---- pam.deb.orig/modules/pam_motd/pam_motd.c -+++ pam.deb/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 @@ -48,14 +48,38 @@ static char default_motd[] = DEFAULT_MOTD; -+void display_file(pam_handle_t *pamh, const char *motd_path) ++static void display_file(pam_handle_t *pamh, const char *motd_path) +{ + int fd; + char *mtmp = NULL; @@ -79,7 +79,7 @@ Index: pam.deb/modules/pam_motd/pam_motd.c + If /etc/motd -> /var/run/motd, the displayed MOTD will be dynamic. + 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_IDIR(st.st_mode)) { ++ 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")) + rename("/var/run/motd.new", "/var/run/motd"); } |