diff options
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch | 36 | ||||
-rw-r--r-- | meta/recipes-extended/shadow/shadow_4.1.4.3.bb | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch b/meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch new file mode 100644 index 0000000000..80ebdc22a4 --- /dev/null +++ b/meta/recipes-extended/shadow/files/fix-etc-gshadow-reading.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | shadow: Fix parsing of gshadow entries | ||
2 | |||
3 | Upstream-Status: Backport [http://anonscm.debian.org/viewvc/pkg-shadow?view=revision&revision=3096] | ||
4 | |||
5 | newgrp command does not function properly. | ||
6 | Even with the valid password, it outputs: "'Invalid password'" | ||
7 | |||
8 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
9 | |||
10 | 2010-02-14 Michael Bunk <mb@computer-leipzig.com> | ||
11 | |||
12 | * NEWS, lib/gshadow.c: Fix parsing of gshadow entries. | ||
13 | |||
14 | diff -urpN a/lib/gshadow.c b/lib/gshadow.c | ||
15 | --- a/lib/gshadow.c 2013-07-11 10:18:15.745450428 +0800 | ||
16 | +++ b/lib/gshadow.c 2013-07-11 10:17:30.465450280 +0800 | ||
17 | @@ -222,6 +222,7 @@ void endsgent (void) | ||
18 | if (NULL == buf) { | ||
19 | return NULL; | ||
20 | } | ||
21 | + buflen = BUFSIZ; | ||
22 | } | ||
23 | |||
24 | if (NULL == fp) { | ||
25 | @@ -229,9 +230,9 @@ void endsgent (void) | ||
26 | } | ||
27 | |||
28 | #ifdef USE_NIS | ||
29 | - while (fgetsx (buf, (int) sizeof buf, fp) == buf) | ||
30 | + while (fgetsx (buf, (int) buflen, fp) == buf) | ||
31 | #else | ||
32 | - if (fgetsx (buf, (int) sizeof buf, fp) == buf) | ||
33 | + if (fgetsx (buf, (int) buflen, fp) == buf) | ||
34 | #endif | ||
35 | { | ||
36 | while ( ((cp = strrchr (buf, '\n')) == NULL) | ||
diff --git a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb index af67339d99..31cef20a15 100644 --- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb +++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb | |||
@@ -24,6 +24,7 @@ SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ | |||
24 | file://shadow-update-pam-conf.patch \ | 24 | file://shadow-update-pam-conf.patch \ |
25 | file://shadow_fix_for_automake-1.12.patch \ | 25 | file://shadow_fix_for_automake-1.12.patch \ |
26 | file://slackware_fix_for_glib-2.17_crypt.patch \ | 26 | file://slackware_fix_for_glib-2.17_crypt.patch \ |
27 | file://fix-etc-gshadow-reading.patch \ | ||
27 | " | 28 | " |
28 | 29 | ||
29 | SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79" | 30 | SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79" |