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 9e515066d..0073c6edc 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -231,7 +231,7 @@ ssh_proxy_connect(const char *host, u_short port, const char *proxy_command)
231 /* Execute the proxy command. Note that we gave up any 231 /* Execute the proxy command. Note that we gave up any
232 extra privileges above. */ 232 extra privileges above. */
233 signal(SIGPIPE, SIG_DFL); 233 signal(SIGPIPE, SIG_DFL);
234 execv(argv[0], argv); 234 execvp(argv[0], argv);
235 perror(argv[0]); 235 perror(argv[0]);
236 exit(1); 236 exit(1);
237 } 237 }
@@ -1470,7 +1470,7 @@ ssh_local_cmd(const char *args)
1470 if (pid == 0) { 1470 if (pid == 0) {
1471 signal(SIGPIPE, SIG_DFL); 1471 signal(SIGPIPE, SIG_DFL);
1472 debug3("Executing %s -c \"%s\"", shell, args); 1472 debug3("Executing %s -c \"%s\"", shell, args);
1473 execl(shell, shell, "-c", args, (char *)NULL); 1473 execlp(shell, shell, "-c", args, (char *)NULL);
1474 error("Couldn't execute %s -c \"%s\": %s", 1474 error("Couldn't execute %s -c \"%s\": %s",
1475 shell, args, strerror(errno)); 1475 shell, args, strerror(errno));
1476 _exit(1); 1476 _exit(1);