From d85bab6fdcac293a0099610eee241d0654939a61 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Thu, 25 Sep 2003 09:45:47 +0000 Subject: - clarify "put" and "get" commands. This is based on a FreeBSD PR submitted by Gary W. Swearingen and fixed by Simon L. Nielsen in rev. 1.15; - some other small clarifications to the man page - sync usage()'s with the man page --- usr.bin/tftp/main.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'usr.bin/tftp/main.c') diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c index 1a50a844f2b..16d04510fe1 100644 --- a/usr.bin/tftp/main.c +++ b/usr.bin/tftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.18 2003/09/24 20:21:40 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.19 2003/09/25 09:45:46 jmc Exp $ */ /* $NetBSD: main.c,v 1.6 1995/05/21 16:54:10 mycroft Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: main.c,v 1.18 2003/09/24 20:21:40 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: main.c,v 1.19 2003/09/25 09:45:46 jmc Exp $"; #endif /* not lint */ /* Many bug fixes are from Jim Guyton */ @@ -196,7 +196,7 @@ setpeer(int argc, char *argv[]) argv = margv; } if ((argc < 2) || (argc > 3)) { - printf("usage: %s host-name [port]\n", argv[0]); + printf("usage: %s [host] [port]\n", argv[0]); return; } if (inet_aton(argv[1], &peeraddr.sin_addr) != 0) { @@ -384,8 +384,8 @@ put(int argc, char *argv[]) static void putusage(char *s) { - printf("usage: %s file ... host:target, or\n", s); - printf(" %s file ... target (when already connected)\n", s); + printf("usage: %s file [[host:]remotename]\n", s); + printf(" %s file1 file2 ... fileN [[host:]remote-directory]\n", s); } /* @@ -469,8 +469,8 @@ get(int argc, char *argv[]) static void getusage(char *s) { - printf("usage: %s host:file host:file ... file, or\n", s); - printf(" %s file file ... file if connected\n", s); + printf("usage: %s [host:]file [localname]\n", s); + printf(" %s [host1:]file1 [host2:]file2 ... [hostN:]fileN\n", s); } int rexmtval = TIMEOUT; -- cgit v1.2.3