summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2004-06-18 06:13:26 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2004-06-18 06:13:26 +0000
commit67cfc3bb7fd2310b3b395fa36f98a80f35c811d1 (patch)
treed4eca4460a41a5f2d59c52fd14d2156ae668d5b1 /usr.bin/ssh
parent1ee3ee394be153b1f5bbcb4a4f4e4f4873a62db7 (diff)
Use execvp instead of execv so sftp -S ssh works. "makes sense" markus@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/sftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c
index 28a11847718..dfce3090f53 100644
--- a/usr.bin/ssh/sftp.c
+++ b/usr.bin/ssh/sftp.c
@@ -16,7 +16,7 @@
#include "includes.h"
-RCSID("$OpenBSD: sftp.c,v 1.48 2004/06/03 12:22:20 pedro Exp $");
+RCSID("$OpenBSD: sftp.c,v 1.49 2004/06/18 06:13:25 dtucker Exp $");
#include <glob.h>
@@ -1270,7 +1270,7 @@ connect_to_server(char *path, char **args, int *in, int *out)
* kill it too
*/
signal(SIGINT, SIG_IGN);
- execv(path, args);
+ execvp(path, args);
fprintf(stderr, "exec: %s: %s\n", path, strerror(errno));
_exit(1);
}