summaryrefslogtreecommitdiff
path: root/bin/mkdir
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/mkdir
parent99d09c2c5ce8a0c313c2a485a4a6a8ed24e805c5 (diff)
o) __progname aria;
millert@ ok.
Diffstat (limited to 'bin/mkdir')
-rw-r--r--bin/mkdir/mkdir.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/mkdir/mkdir.c b/bin/mkdir/mkdir.c
index 83c200fdef3..e788be05b74 100644
--- a/bin/mkdir/mkdir.c
+++ b/bin/mkdir/mkdir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkdir.c,v 1.9 2000/02/02 05:09:01 ericj Exp $ */
+/* $OpenBSD: mkdir.c,v 1.10 2001/09/06 13:29:08 mpech Exp $ */
/* $NetBSD: mkdir.c,v 1.14 1995/06/25 21:59:21 mycroft Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mkdir.c 8.2 (Berkeley) 1/25/94";
#else
-static char rcsid[] = "$OpenBSD: mkdir.c,v 1.9 2000/02/02 05:09:01 ericj Exp $";
+static char rcsid[] = "$OpenBSD: mkdir.c,v 1.10 2001/09/06 13:29:08 mpech Exp $";
#endif
#endif /* not lint */
@@ -59,6 +59,8 @@ static char rcsid[] = "$OpenBSD: mkdir.c,v 1.9 2000/02/02 05:09:01 ericj Exp $";
#include <string.h>
#include <unistd.h>
+extern char *__progname;
+
int mkpath __P((char *, mode_t, mode_t));
void usage __P((void));
@@ -182,7 +184,6 @@ mkpath(path, mode, dir_mode)
void
usage()
{
-
- (void)fprintf(stderr, "usage: mkdir [-p] [-m mode] dirname ...\n");
+ (void)fprintf(stderr, "usage: %s [-p] [-m mode] dirname ...\n", __progname);
exit(1);
}