summaryrefslogtreecommitdiff
path: root/bin/mv
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2001-09-06 13:29:09 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2001-09-06 13:29:09 +0000
commite9adfbcaf16f3287027630e6f8926cbf5195af9f (patch)
treeb20ad65ef5726147335786dc24cc1d1a00d5c7f3 /bin/mv
parent99d09c2c5ce8a0c313c2a485a4a6a8ed24e805c5 (diff)
o) __progname aria;
millert@ ok.
Diffstat (limited to 'bin/mv')
-rw-r--r--bin/mv/mv.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c
index 749c528e081..8db29894189 100644
--- a/bin/mv/mv.c
+++ b/bin/mv/mv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mv.c,v 1.18 2001/07/09 07:04:26 deraadt Exp $ */
+/* $OpenBSD: mv.c,v 1.19 2001/09/06 13:29:08 mpech Exp $ */
/* $NetBSD: mv.c,v 1.9 1995/03/21 09:06:52 cgd Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mv.c 8.2 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: mv.c,v 1.18 2001/07/09 07:04:26 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mv.c,v 1.19 2001/09/06 13:29:08 mpech Exp $";
#endif
#endif /* not lint */
@@ -69,6 +69,8 @@ static char rcsid[] = "$OpenBSD: mv.c,v 1.18 2001/07/09 07:04:26 deraadt Exp $";
#include "pathnames.h"
+extern char *__progname;
+
int fflg, iflg;
int stdin_ok;
@@ -407,8 +409,8 @@ copy(from, to)
void
usage()
{
-
- (void)fprintf(stderr, "usage: mv [-fi] source target\n");
- (void)fprintf(stderr, " mv [-fi] source ... directory\n");
+ (void)fprintf(stderr, "usage: %s [-fi] source target\n", __progname);
+ (void)fprintf(stderr, " %s [-fi] source ... directory\n",
+ __progname);
exit(1);
}