[Pkg-shadow-commits] r1424 - debian/trunk/debian/patches
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Tue Nov 20 19:03:19 UTC 2007
Author: nekral-guest
Date: 2007-11-20 19:03:18 +0000 (Tue, 20 Nov 2007)
New Revision: 1424
Modified:
debian/trunk/debian/patches/008_su_get_PAM_username
Log:
Fix warning when compiled with -W -Wall.
Modified: debian/trunk/debian/patches/008_su_get_PAM_username
===================================================================
--- debian/trunk/debian/patches/008_su_get_PAM_username 2007-11-20 19:02:34 UTC (rev 1423)
+++ debian/trunk/debian/patches/008_su_get_PAM_username 2007-11-20 19:03:18 UTC (rev 1424)
@@ -9,11 +9,12 @@
===================================================================
--- shadow-4.0.18.1.orig/src/su.c 2006-09-17 12:17:52.483993589 +0200
+++ shadow-4.0.18.1/src/su.c 2006-09-17 12:17:53.099998487 +0200
-@@ -304,6 +304,7 @@
+@@ -304,6 +304,8 @@
struct passwd *pw = 0;
char **envp = environ;
char *shellstr = 0, *command = 0;
+ char *tmp_name;
++ char **ptr_tmp_name = &tmp_name;
#ifdef USE_PAM
char **envcp;
@@ -21,7 +22,7 @@
su_failure (tty);
}
}
-+ ret = pam_get_item(pamh, PAM_USER, (const void **) &tmp_name);
++ ret = pam_get_item(pamh, PAM_USER, (const void **) ptr_tmp_name);
+ if (ret != PAM_SUCCESS) {
+ SYSLOG((LOG_ERR, "pam_get_item: internal PAM error\n"));
+ fprintf(stderr, "%s: Internal PAM error retrieving username\n", Prog);
More information about the Pkg-shadow-commits
mailing list