* src/sulogin.c (main): env is only used when USE_PAM is not set.
This commit is contained in:
parent
704f28df98
commit
2afa955401
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user