[sftp.c]
Use execvp instead of execv so sftp -S ssh works. "makes sense" markus@
- djm@cvs.openbsd.org 2004/06/17 23:56:57
[ssh.1 ssh.c]
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
- (dtucker) [regress/scp.sh] diff -N is not portable (but needed for some
#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 "xmalloc.h"
* kill it too
*/
signal(SIGINT, SIG_IGN);
- execv(path, args);
+ execvp(path, args);
fprintf(stderr, "exec: %s: %s\n", path, strerror(errno));
_exit(1);
}