diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2000-04-24 22:40:12 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2000-04-24 22:40:12 +0000 |
commit | c9c61ff490ab1fc720da809662abd4b5221e80cc (patch) | |
tree | 5ee693edb31b0e189e323cf7c52fea37a629d389 /usr.sbin | |
parent | 69a9adbec675ddf254f65cca62397414973aa846 (diff) |
fix usage when building with EXTENSIONS
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/user/user.c | 9 |
1 files 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) { |