[sftp.c]
     Use execvp instead of execv so sftp -S ssh works.  "makes sense" markus@
This commit is contained in:
Darren Tucker 2004-06-18 16:23:43 +10:00
parent ba5c592126
commit bd12f1741e
2 changed files with 6 additions and 3 deletions

View File

@ -16,6 +16,9 @@
- djm@cvs.openbsd.org 2004/06/17 23:56:57 - djm@cvs.openbsd.org 2004/06/17 23:56:57
[ssh.1 ssh.c] [ssh.1 ssh.c]
sync usage() and SYNPOSIS with connection sharing changes sync usage() and SYNPOSIS with connection sharing changes
- 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@
20040617 20040617
- (dtucker) [regress/scp.sh] diff -N is not portable (but needed for some - (dtucker) [regress/scp.sh] diff -N is not portable (but needed for some
@ -1289,4 +1292,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
$Id: ChangeLog,v 1.3409 2004/06/18 06:22:39 dtucker Exp $ $Id: ChangeLog,v 1.3410 2004/06/18 06:23:43 dtucker Exp $

4
sftp.c
View File

@ -16,7 +16,7 @@
#include "includes.h" #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 "buffer.h" #include "buffer.h"
#include "xmalloc.h" #include "xmalloc.h"
@ -1279,7 +1279,7 @@ connect_to_server(char *path, char **args, int *in, int *out)
* kill it too * kill it too
*/ */
signal(SIGINT, SIG_IGN); signal(SIGINT, SIG_IGN);
execv(path, args); execvp(path, args);
fprintf(stderr, "exec: %s: %s\n", path, strerror(errno)); fprintf(stderr, "exec: %s: %s\n", path, strerror(errno));
_exit(1); _exit(1);
} }