[Pkg-shadow-commits] r3521 - in upstream/trunk: . src
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Tue Oct 18 20:28:01 UTC 2011
Author: nekral-guest
Date: 2011-10-18 20:28:01 +0000 (Tue, 18 Oct 2011)
New Revision: 3521
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/sulogin.c
Log:
* src/sulogin.c (main): env is only used when USE_PAM is not set.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2011-10-18 20:23:33 UTC (rev 3520)
+++ upstream/trunk/ChangeLog 2011-10-18 20:28:01 UTC (rev 3521)
@@ -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 at centraliens.net>
Modified: upstream/trunk/src/sulogin.c
===================================================================
--- upstream/trunk/src/sulogin.c 2011-10-18 20:23:33 UTC (rev 3520)
+++ upstream/trunk/src/sulogin.c 2011-10-18 20:28:01 UTC (rev 3521)
@@ -82,7 +82,9 @@
/*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 @@
}
#ifndef USE_PAM
-
env = getdef_str ("ENV_TZ");
if (NULL != env) {
addenv (('/' == *env) ? tz (env) : env, NULL);
More information about the Pkg-shadow-commits
mailing list