diff options
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include "includes.h" | 17 | #include "includes.h" |
18 | 18 | ||
19 | RCSID("$OpenBSD: sftp.c,v 1.48 2004/06/03 12:22:20 pedro Exp $"); | 19 | RCSID("$OpenBSD: sftp.c,v 1.49 2004/06/18 06:13:25 dtucker Exp $"); |
20 | 20 | ||
21 | #include "buffer.h" | 21 | #include "buffer.h" |
22 | #include "xmalloc.h" | 22 | #include "xmalloc.h" |
@@ -1279,7 +1279,7 @@ connect_to_server(char *path, char **args, int *in, int *out) | |||
1279 | * kill it too | 1279 | * kill it too |
1280 | */ | 1280 | */ |
1281 | signal(SIGINT, SIG_IGN); | 1281 | signal(SIGINT, SIG_IGN); |
1282 | execv(path, args); | 1282 | execvp(path, args); |
1283 | fprintf(stderr, "exec: %s: %s\n", path, strerror(errno)); | 1283 | fprintf(stderr, "exec: %s: %s\n", path, strerror(errno)); |
1284 | _exit(1); | 1284 | _exit(1); |
1285 | } | 1285 | } |