From 844c830057d516c945817be0dffd1886bf1be7f7 Mon Sep 17 00:00:00 2001 From: jakob Date: Mon, 24 Apr 2000 22:40:11 +0000 Subject: [PATCH] fix usage when building with EXTENSIONS --- usr.sbin/user/user.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/usr.sbin/user/user.c b/usr.sbin/user/user.c index beb2d22a1ee..8ad6d3af844 100644 --- a/usr.sbin/user/user.c +++ b/usr.sbin/user/user.c @@ -1,4 +1,4 @@ -/* $OpenBSD: user.c,v 1.4 2000/04/24 22:38:31 jakob Exp $ */ +/* $OpenBSD: user.c,v 1.5 2000/04/24 22:40:11 jakob Exp $ */ /* $NetBSD: user.c,v 1.17 2000/04/14 06:26:55 simonb Exp $ */ /* @@ -196,6 +196,7 @@ asystem(char *fmt, ...) return ret; } + /* return 1 if all of `s' is numeric */ static int is_number(char *s) @@ -966,7 +967,11 @@ usermgmt_usage(char *prog) (void) fprintf(stderr, "Usage: %s [-g gid] [-o] [-n newname] " "[-v] group\n", prog); } else if (strcmp(prog, "user") == 0 || strcmp(prog, "group") == 0) { - (void) fprintf(stderr, "Usage: %s ( add | del | mod ) ...\n", + (void) fprintf(stderr, "Usage: %s ( add | del | mod " +#ifdef EXTENSIONS + "| info " +#endif + ") ...\n", prog); #ifdef EXTENSIONS } else if (strcmp(prog, "groupinfo") == 0) { -- 2.20.1