summaryrefslogtreecommitdiff
path: root/bin/rcp
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2007-03-20 18:50:12 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2007-03-20 18:50:12 +0000
commit9088258d6d6f216c3b0f893a051a5a333d3f86b5 (patch)
treecb0375dbf69e1a083676ff64e20f6d1516fe3b35 /bin/rcp
parent72c535ee11d79146ad5fb11e38f6a05fe0f7dac4 (diff)
sync usage(); from Igor Sobrado
i also ripped some kerberos ifdefs out of usage(), which is ok biorn
Diffstat (limited to 'bin/rcp')
-rw-r--r--bin/rcp/rcp.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c
index c3f71b240d2..afa93d441b2 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcp.c,v 1.45 2006/05/17 12:44:16 markus Exp $ */
+/* $OpenBSD: rcp.c,v 1.46 2007/03/20 18:50:11 jmc Exp $ */
/* $NetBSD: rcp.c,v 1.9 1995/03/21 08:19:06 cgd Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)rcp.c 8.2 (Berkeley) 4/2/94";
#else
-static const char rcsid[] = "$OpenBSD: rcp.c,v 1.45 2006/05/17 12:44:16 markus Exp $";
+static const char rcsid[] = "$OpenBSD: rcp.c,v 1.46 2007/03/20 18:50:11 jmc Exp $";
#endif
#endif /* not lint */
@@ -871,16 +871,10 @@ response(void)
void
usage(void)
{
-#ifdef KERBEROS
- (void)fprintf(stderr, "usage: %s [-Kpx] [-k realm] f1 f2\n",
- __progname);
- (void)fprintf(stderr, " %s [-Kprx] [-k realm] f1 ... fn directory\n",
- __progname);
-#else
(void)fprintf(stderr,
- "usage: %s [-p] f1 f2; or: rcp [-pr] f1 ... fn directory\n",
- __progname);
-#endif
+ "usage: %s [-p] file1 file2\n"
+ " %s [-pr] file ... directory\n",
+ __progname, __progname);
exit(1);
}