]> andersk Git - gssapi-openssh.git/commitdiff
patch from Olle Mulmo, https://bugzilla.ncsa.uiuc.edu/show_bug.cgi?id=127
authorjbasney <jbasney>
Fri, 13 Jun 2003 18:50:12 +0000 (18:50 +0000)
committerjbasney <jbasney>
Fri, 13 Jun 2003 18:50:12 +0000 (18:50 +0000)
execve() with environ instead of local env in do_child as the optional
hooks may make modifications to environ that we want to pass to the child

openssh/session.c

index 97c0c0a436a0dc04272773f7b4fa6739b274af62..c85821d315778bcfb2ab55b23a1ff2fc0c556874 100644 (file)
@@ -1670,7 +1670,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);
@@ -1684,7 +1684,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.037784 seconds and 5 git commands to generate.