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

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


Author: nekral-guest
Date: 2007-12-31 15:07:59 +0000 (Mon, 31 Dec 2007)
New Revision: 1577

Modified:
   upstream/trunk/src/chsh.c
Log:
sflg needs to be global.


Modified: upstream/trunk/src/chsh.c
===================================================================
--- upstream/trunk/src/chsh.c	2007-12-31 15:06:22 UTC (rev 1576)
+++ upstream/trunk/src/chsh.c	2007-12-31 15:07:59 UTC (rev 1577)
@@ -63,6 +63,8 @@
 static char *Prog;		/* Program name */
 static int amroot;		/* Real UID is root */
 static char loginsh[BUFSIZ];	/* Name of new login shell */
+/* command line options */
+static int sflg = 0;		/* -s - set shell from command line  */
 
 /* external identifiers */
 
@@ -417,7 +419,6 @@
 int main (int argc, char **argv)
 {
 	char *user;		/* User name                         */
-	int sflg = 0;		/* -s - set shell from command line  */
 	const struct passwd *pw;	/* Password entry from /etc/passwd   */
 
 	sanitize_env ();




More information about the Pkg-shadow-commits mailing list