[Pkg-shadow-commits] r1585 - upstream/trunk/src

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Mon Dec 31 20:15:15 UTC 2007


Author: nekral-guest
Date: 2007-12-31 20:15:15 +0000 (Mon, 31 Dec 2007)
New Revision: 1585

Modified:
   upstream/trunk/src/chsh.c
Log:
Compilation fix. pamh needs to be global since the split of check_perms().


Modified: upstream/trunk/src/chsh.c
===================================================================
--- upstream/trunk/src/chsh.c	2007-12-31 20:14:31 UTC (rev 1584)
+++ upstream/trunk/src/chsh.c	2007-12-31 20:15:15 UTC (rev 1585)
@@ -65,6 +65,9 @@
 static char loginsh[BUFSIZ];	/* Name of new login shell */
 /* command line options */
 static int sflg = 0;		/* -s - set shell from command line  */
+#ifdef USE_PAM
+static pam_handle_t *pamh = NULL;
+#endif
 
 /* external identifiers */
 
@@ -231,7 +234,6 @@
 static void check_perms (const struct passwd *pw)
 {
 #ifdef USE_PAM
-	pam_handle_t *pamh = NULL;
 	int retval;
 	struct passwd *pampw;
 #endif




More information about the Pkg-shadow-commits mailing list