From e9adfbcaf16f3287027630e6f8926cbf5195af9f Mon Sep 17 00:00:00 2001 From: Mike Pechkin Date: Thu, 6 Sep 2001 13:29:09 +0000 Subject: o) __progname aria; millert@ ok. --- bin/mv/mv.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bin/mv') 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); } -- cgit v1.2.3