diff options
author | 2002-02-06 14:27:23 +0000 | |
---|---|---|
committer | 2002-02-06 14:27:23 +0000 | |
commit | 07074bc481d60f2a13aef63e3f9a2f978e2bd6cc (patch) | |
tree | 3468996f1ca089fb3e563581bda9856a700bb5e4 | |
parent | correct monitor port matching. (diff) | |
download | wireguard-openbsd-07074bc481d60f2a13aef63e3f9a2f978e2bd6cc.tar.xz wireguard-openbsd-07074bc481d60f2a13aef63e3f9a2f978e2bd6cc.zip |
sync usage() with manual.
markus@ ok
-rw-r--r-- | usr.bin/ssh/sftp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c index f1bf627e2da..16dc983949e 100644 --- a/usr.bin/ssh/sftp.c +++ b/usr.bin/ssh/sftp.c @@ -24,7 +24,7 @@ #include "includes.h" -RCSID("$OpenBSD: sftp.c,v 1.24 2002/02/05 00:00:46 djm Exp $"); +RCSID("$OpenBSD: sftp.c,v 1.25 2002/02/06 14:27:23 mpech Exp $"); /* XXX: short-form remote directory listings (like 'ls -C') */ @@ -86,10 +86,12 @@ connect_to_server(char *path, char **args, int *in, int *out, pid_t *sshpid) static void usage(void) { + extern char *__progname; + fprintf(stderr, - "usage: sftp [-1Cv] [-b batchfile] [-F config] [-o option] [-s subsystem|path]\n" - " [-P direct server path] [-S program] \n" - " [-B buffer_size] [user@]host[:file [file]]\n"); + "usage: %s [-vC1] [-b batchfile] [-o option] [-s subsystem|path] [-B buffer_size]\n" + " [-F config] [-P direct server path] [-S program]\n" + " [user@]host[:file [file]]\n", __progname); exit(1); } |