summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sshconnect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c
index f3244d35b..59b273a9c 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -116,8 +116,8 @@ ssh_proxy_connect(const char *host, u_short port, uid_t original_real_uid,
116 116
117 /* Execute the proxy command. Note that we gave up any 117 /* Execute the proxy command. Note that we gave up any
118 extra privileges above. */ 118 extra privileges above. */
119 execv(_PATH_BSHELL, argv); 119 execv(argv[0], argv);
120 perror(_PATH_BSHELL); 120 perror(argv[0]);
121 exit(1); 121 exit(1);
122 } 122 }
123 /* Parent. */ 123 /* Parent. */