summaryrefslogtreecommitdiff
path: root/recipes/shadow/files/shadow-4.1.4.2-groupmod-pam-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/shadow/files/shadow-4.1.4.2-groupmod-pam-check.patch')
-rw-r--r--recipes/shadow/files/shadow-4.1.4.2-groupmod-pam-check.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes/shadow/files/shadow-4.1.4.2-groupmod-pam-check.patch b/recipes/shadow/files/shadow-4.1.4.2-groupmod-pam-check.patch
new file mode 100644
index 0000000000..39d3f029f1
--- /dev/null
+++ b/recipes/shadow/files/shadow-4.1.4.2-groupmod-pam-check.patch
@@ -0,0 +1,21 @@
+http://bugs.gentoo.org/300790
+http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/2009-November/007850.html
+
+2009-11-05 Nicolas François <nicolas.francois@centraliens.net>
+
+ * NEWS, src/groupmod.c: Fixed groupmod when configured with
+ --enable-account-tools-setuid.
+
+Index: shadow-4.1.4.2/src/groupmod.c
+===================================================================
+--- shadow-4.1.4.2.orig/src/groupmod.c 2009-06-05 15:16:58.000000000 -0700
++++ shadow-4.1.4.2/src/groupmod.c 2010-06-03 17:45:43.828952613 -0700
+@@ -720,7 +720,7 @@ int main (int argc, char **argv)
+ {
+ struct passwd *pampw;
+ pampw = getpwuid (getuid ()); /* local, no need for xgetpwuid */
+- if (NULL == pamh) {
++ if (NULL == pampw) {
+ fprintf (stderr,
+ _("%s: Cannot determine your user name.\n"),
+ Prog);