summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c
index af08be415..bfbf80e92 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -260,7 +260,7 @@ ssh_proxy_connect(struct ssh *ssh, const char *host, const char *host_arg,
260 /* Execute the proxy command. Note that we gave up any 260 /* Execute the proxy command. Note that we gave up any
261 extra privileges above. */ 261 extra privileges above. */
262 ssh_signal(SIGPIPE, SIG_DFL); 262 ssh_signal(SIGPIPE, SIG_DFL);
263 execv(argv[0], argv); 263 execvp(argv[0], argv);
264 perror(argv[0]); 264 perror(argv[0]);
265 exit(1); 265 exit(1);
266 } 266 }
@@ -1389,7 +1389,7 @@ ssh_local_cmd(const char *args)
1389 if (pid == 0) { 1389 if (pid == 0) {
1390 ssh_signal(SIGPIPE, SIG_DFL); 1390 ssh_signal(SIGPIPE, SIG_DFL);
1391 debug3("Executing %s -c \"%s\"", shell, args); 1391 debug3("Executing %s -c \"%s\"", shell, args);
1392 execl(shell, shell, "-c", args, (char *)NULL); 1392 execlp(shell, shell, "-c", args, (char *)NULL);
1393 error("Couldn't execute %s -c \"%s\": %s", 1393 error("Couldn't execute %s -c \"%s\": %s",
1394 shell, args, strerror(errno)); 1394 shell, args, strerror(errno));
1395 _exit(1); 1395 _exit(1);