]> andersk Git - gssapi-openssh.git/commitdiff
o Merge to OPENSSH_3_6_1P2_GSSAPI_20030721.
authorcphillip <cphillip>
Fri, 25 Jul 2003 19:37:41 +0000 (19:37 +0000)
committercphillip <cphillip>
Fri, 25 Jul 2003 19:37:41 +0000 (19:37 +0000)
openssh/session.c

index a2b039fa21f9d54b683b1f222d5bb2d30144c161..e8527fadb4f2a13785a0c9da19783c004e44d999 100644 (file)
@@ -1168,6 +1168,9 @@ do_setup_env(Session *s, const char *shell)
 #  else 
                child_set_env(&env, &envsize, "PATH", _PATH_STDPATH_WITH_SCP);
 #  endif /* SUPERUSER_PATH */
+               if (getenv("LD_LIBRARY_PATH"))
+                       child_set_env(&env, &envsize, "LD_LIBRARY_PATH",
+                                     getenv("LD_LIBRARY_PATH"));
 # endif /* HAVE_CYGWIN */
 #endif /* HAVE_LOGIN_CAP */
 
@@ -1678,7 +1681,7 @@ do_child(Session *s, const char *command)
                /* Execute the shell. */
                argv[0] = argv0;
                argv[1] = NULL;
-               execve(shell, argv, env);
+               execve(shell, argv, environ);
 
                /* Executing the shell failed. */
                perror(shell);
@@ -1692,7 +1695,7 @@ do_child(Session *s, const char *command)
        argv[1] = "-c";
        argv[2] = (char *) command;
        argv[3] = NULL;
-       execve(shell, argv, env);
+       execve(shell, argv, environ);
        perror(shell);
        exit(1);
 }
This page took 0.044075 seconds and 5 git commands to generate.