summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--session.c5
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f97c7acba..aa3d0ae9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -119,7 +119,10 @@
119 - (djm) [uuencode.c] 119 - (djm) [uuencode.c]
120 Add resolv.h, is it contains the prototypes for __b64_ntop/__b64_pton on 120 Add resolv.h, is it contains the prototypes for __b64_ntop/__b64_pton on
121 some platforms 121 some platforms
122 122 - (djm) [session.c]
123 fix compile error with -Werror -Wall: 'path' is only used in
124 do_setup_env() if HAVE_LOGIN_CAP is not defined
125
12320060713 12620060713
124 - (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h 127 - (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h
125 128
@@ -5037,4 +5040,4 @@
5037 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 5040 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
5038 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 5041 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
5039 5042
5040$Id: ChangeLog,v 1.4432 2006/07/24 04:58:07 djm Exp $ 5043$Id: ChangeLog,v 1.4433 2006/07/24 05:03:06 djm Exp $
diff --git a/session.c b/session.c
index c2730a425..0c20d9e8a 100644
--- a/session.c
+++ b/session.c
@@ -995,8 +995,11 @@ do_setup_env(Session *s, const char *shell)
995{ 995{
996 char buf[256]; 996 char buf[256];
997 u_int i, envsize; 997 u_int i, envsize;
998 char **env, *laddr, *path = NULL; 998 char **env, *laddr;
999 struct passwd *pw = s->pw; 999 struct passwd *pw = s->pw;
1000#ifndef HAVE_LOGIN_CAP
1001 char *path = NULL;
1002#endif
1000 1003
1001 /* Initialize the environment. */ 1004 /* Initialize the environment. */
1002 envsize = 100; 1005 envsize = 100;