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 dc7a704d2..5eed58809 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -235,7 +235,7 @@ ssh_proxy_connect(struct ssh *ssh, const char *host, u_short port,
235 /* Execute the proxy command. Note that we gave up any 235 /* Execute the proxy command. Note that we gave up any
236 extra privileges above. */ 236 extra privileges above. */
237 signal(SIGPIPE, SIG_DFL); 237 signal(SIGPIPE, SIG_DFL);
238 execv(argv[0], argv); 238 execvp(argv[0], argv);
239 perror(argv[0]); 239 perror(argv[0]);
240 exit(1); 240 exit(1);
241 } 241 }
@@ -1435,7 +1435,7 @@ ssh_local_cmd(const char *args)
1435 if (pid == 0) { 1435 if (pid == 0) {
1436 signal(SIGPIPE, SIG_DFL); 1436 signal(SIGPIPE, SIG_DFL);
1437 debug3("Executing %s -c \"%s\"", shell, args); 1437 debug3("Executing %s -c \"%s\"", shell, args);
1438 execl(shell, shell, "-c", args, (char *)NULL); 1438 execlp(shell, shell, "-c", args, (char *)NULL);
1439 error("Couldn't execute %s -c \"%s\": %s", 1439 error("Couldn't execute %s -c \"%s\": %s",
1440 shell, args, strerror(errno)); 1440 shell, args, strerror(errno));
1441 _exit(1); 1441 _exit(1);