]> andersk Git - openssh.git/commitdiff
- (djm) [session.c]
authordjm <djm>
Mon, 24 Jul 2006 05:03:06 +0000 (05:03 +0000)
committerdjm <djm>
Mon, 24 Jul 2006 05:03:06 +0000 (05:03 +0000)
   fix compile error with -Werror -Wall: 'path' is only used in
   do_setup_env() if HAVE_LOGIN_CAP is not defined

ChangeLog
session.c

index cad6d2f6d81913a1d390da89b2ae0eaff3e99370..86e93b1171f1ade2c80d8a0b2eeb5e16fbf90e2c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
  - (djm) [uuencode.c]
    Add resolv.h, is it contains the prototypes for __b64_ntop/__b64_pton on
    some platforms
-
+ - (djm) [session.c]
+   fix compile error with -Werror -Wall: 'path' is only used in
+   do_setup_env() if HAVE_LOGIN_CAP is not defined
+  
 20060713
  - (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h
 
index c2730a4256da0777e23e67dfb026d4fe5381357c..0c20d9e8adf42368323ea9457f016c84d525dabc 100644 (file)
--- a/session.c
+++ b/session.c
@@ -995,8 +995,11 @@ do_setup_env(Session *s, const char *shell)
 {
        char buf[256];
        u_int i, envsize;
-       char **env, *laddr, *path = NULL;
+       char **env, *laddr;
        struct passwd *pw = s->pw;
+#ifndef HAVE_LOGIN_CAP
+       char *path = NULL;
+#endif
 
        /* Initialize the environment. */
        envsize = 100;
This page took 0.050172 seconds and 5 git commands to generate.