summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-06-18 16:23:43 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-06-18 16:23:43 +1000
commitbd12f1741e9ea6432d5ca7006c4cf2553aebbdbf (patch)
treed26377c6ea3538cacbdc8608ea364b56f012d4b4
parentba5c592126c70587b6fb6887494f1e29a8a05e09 (diff)
- dtucker@cvs.openbsd.org 2004/06/18 06:13:25
[sftp.c] Use execvp instead of execv so sftp -S ssh works. "makes sense" markus@
-rw-r--r--ChangeLog5
-rw-r--r--sftp.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2a24d8812..56c49b6ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,9 @@
16 - djm@cvs.openbsd.org 2004/06/17 23:56:57 16 - djm@cvs.openbsd.org 2004/06/17 23:56:57
17 [ssh.1 ssh.c] 17 [ssh.1 ssh.c]
18 sync usage() and SYNPOSIS with connection sharing changes 18 sync usage() and SYNPOSIS with connection sharing changes
19 - dtucker@cvs.openbsd.org 2004/06/18 06:13:25
20 [sftp.c]
21 Use execvp instead of execv so sftp -S ssh works. "makes sense" markus@
19 22
2020040617 2320040617
21 - (dtucker) [regress/scp.sh] diff -N is not portable (but needed for some 24 - (dtucker) [regress/scp.sh] diff -N is not portable (but needed for some
@@ -1289,4 +1292,4 @@
1289 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 1292 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
1290 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 1293 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
1291 1294
1292$Id: ChangeLog,v 1.3409 2004/06/18 06:22:39 dtucker Exp $ 1295$Id: ChangeLog,v 1.3410 2004/06/18 06:23:43 dtucker Exp $
diff --git a/sftp.c b/sftp.c
index dca5505d0..1e216be7d 100644
--- a/sftp.c
+++ b/sftp.c
@@ -16,7 +16,7 @@
16 16
17#include "includes.h" 17#include "includes.h"
18 18
19RCSID("$OpenBSD: sftp.c,v 1.48 2004/06/03 12:22:20 pedro Exp $"); 19RCSID("$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 }