summaryrefslogtreecommitdiff
path: root/bin/rm/rm.c
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/rm/rm.c
parent99d09c2c5ce8a0c313c2a485a4a6a8ed24e805c5 (diff)
o) __progname aria;
millert@ ok.
Diffstat (limited to 'bin/rm/rm.c')
-rw-r--r--bin/rm/rm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c
index 327a29e781a..b5f763c201f 100644
--- a/bin/rm/rm.c
+++ b/bin/rm/rm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rm.c,v 1.10 2001/06/08 13:40:20 millert Exp $ */
+/* $OpenBSD: rm.c,v 1.11 2001/09/06 13:29:08 mpech Exp $ */
/* $NetBSD: rm.c,v 1.19 1995/09/07 06:48:50 jtc Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)rm.c 8.8 (Berkeley) 4/27/95";
#else
-static char rcsid[] = "$OpenBSD: rm.c,v 1.10 2001/06/08 13:40:20 millert Exp $";
+static char rcsid[] = "$OpenBSD: rm.c,v 1.11 2001/09/06 13:29:08 mpech Exp $";
#endif
#endif /* not lint */
@@ -65,6 +65,8 @@ static char rcsid[] = "$OpenBSD: rm.c,v 1.10 2001/06/08 13:40:20 millert Exp $";
#include <pwd.h>
#include <grp.h>
+extern char *__progname;
+
int dflag, eval, fflag, iflag, Pflag, Wflag, stdin_ok;
int check __P((char *, char *, struct stat *));
@@ -437,7 +439,6 @@ checkdot(argv)
void
usage()
{
-
- (void)fprintf(stderr, "usage: rm [-dfiPRrW] file ...\n");
+ (void)fprintf(stderr, "usage: %s [-dfiPRrW] file ...\n", __progname);
exit(1);
}