* src/sulogin.c (main): env is only used when USE_PAM is not set.
This commit is contained in:
		| @@ -5,6 +5,7 @@ | ||||
| 	* lib/nscd.c: Remove unused variable. | ||||
| 	* lib/prototypes.h, libmisc/cleanup.c, lib/spawn.c, src/chage.c: | ||||
| 	Add splint annotations. | ||||
| 	* src/sulogin.c (main): env is only used when USE_PAM is not set. | ||||
|  | ||||
| 2011-10-15  Nicolas François  <nicolas.francois@centraliens.net> | ||||
|  | ||||
|   | ||||
| @@ -82,7 +82,9 @@ static RETSIGTYPE catch_signals (unused int sig) | ||||
|  | ||||
|  /*ARGSUSED*/ int main (int argc, char **argv) | ||||
| { | ||||
| #ifndef USE_PAM | ||||
| 	const char *env; | ||||
| #endif				/* !USE_PAM */ | ||||
| 	char **envp = environ; | ||||
| 	TERMIO termio; | ||||
| 	int err = 0; | ||||
| @@ -164,7 +166,6 @@ static RETSIGTYPE catch_signals (unused int sig) | ||||
| 	} | ||||
|  | ||||
| #ifndef USE_PAM | ||||
|  | ||||
| 	env = getdef_str ("ENV_TZ"); | ||||
| 	if (NULL != env) { | ||||
| 		addenv (('/' == *env) ? tz (env) : env, NULL); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user