summaryrefslogtreecommitdiff
path: root/shadow
diff options
context:
space:
mode:
authorJohannes Winkelmann <jw@smts.ch>2009-01-20 15:06:43 +0100
committerJohannes Winkelmann <jw@smts.ch>2009-01-20 15:09:51 +0100
commitce546f084d1286c6977483ee83f9faee9cf63ae3 (patch)
treeb5fec5132336d121f7812972d0c6bacc46397c80 /shadow
parente1cd0f174f9960716b87c110d0e1f6755bd1c800 (diff)
downloadcore-ce546f084d1286c6977483ee83f9faee9cf63ae3.tar.gz
core-ce546f084d1286c6977483ee83f9faee9cf63ae3.tar.xz
shadow: merge upstream change to signal auth fail in su
Diffstat (limited to 'shadow')
-rw-r--r--shadow/.md5sum1
-rw-r--r--shadow/Pkgfile6
-rw-r--r--shadow/shadow-su-warning.diff12
3 files changed, 16 insertions, 3 deletions
diff --git a/shadow/.md5sum b/shadow/.md5sum
index f26a13b8..88ac4743 100644
--- a/shadow/.md5sum
+++ b/shadow/.md5sum
@@ -1,3 +1,4 @@
05a85f1ea6bf26aec66a91b5f98a51b0 login.defs
be8f69c2701118093af3d7f3bc02af16 pwck
3d26d990d4c3add1b7f8387eec1d1fde shadow-4.1.2.2.tar.bz2
+f168a51db199db398b3c815aa20a3ed3 shadow-su-warning.diff
diff --git a/shadow/Pkgfile b/shadow/Pkgfile
index 2d7848d1..444899d5 100644
--- a/shadow/Pkgfile
+++ b/shadow/Pkgfile
@@ -4,13 +4,13 @@
name=shadow
version=4.1.2.2
-release=1
+release=2
source=(ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/$name-$version.tar.bz2
- pwck login.defs)
+ pwck login.defs shadow-su-warning.diff)
build() {
cd $name-$version
-
+ patch -p2 -i $SRC/shadow-su-warning.diff
./configure --prefix=/usr \
--mandir=/usr/man \
--sysconfdir=/etc \
diff --git a/shadow/shadow-su-warning.diff b/shadow/shadow-su-warning.diff
new file mode 100644
index 00000000..14420103
--- /dev/null
+++ b/shadow/shadow-su-warning.diff
@@ -0,0 +1,12 @@
+--- upstream/trunk/src/su.c 2008/09/06 12:51:53 2348
++++ upstream/trunk/src/su.c 2008/11/23 12:10:21 2461
+@@ -721,7 +721,8 @@
+ */
+ if (!amroot && pw_auth (pwent.pw_passwd, name, PW_SU, (char *) 0)) {
+ SYSLOG ((pwent.pw_uid ? LOG_NOTICE : LOG_WARN,
+- "Authentication failed for %s", name));
++ "Authentication failed for %s", name));
++ fprintf(stderr, _("%s: Authentication failure\n"), Prog);
+ su_failure (tty);
+ }
+ (void) signal (SIGQUIT, oldsig);

Generated by cgit