diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2001-03-24 19:24:08 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2001-03-24 19:24:08 +0000 |
commit | 526c1e6326f32df249982b331541c7e7600c9b30 (patch) | |
tree | d02692b5f9d76f241de879d5c85927c0c20295a1 /usr.sbin/user/user.c | |
parent | a9f891cfebe90a79fc0a98de09d0a9fc8987adea (diff) |
fix usage when called as invalid binary name; <raj@cerias.purdue.edu>
Diffstat (limited to 'usr.sbin/user/user.c')
-rw-r--r-- | usr.sbin/user/user.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/user/user.c b/usr.sbin/user/user.c index 39143961ba9..2136b7d3b01 100644 --- a/usr.sbin/user/user.c +++ b/usr.sbin/user/user.c @@ -1,4 +1,4 @@ -/* $OpenBSD: user.c,v 1.21 2001/03/24 19:21:33 jakob Exp $ */ +/* $OpenBSD: user.c,v 1.22 2001/03/24 19:24:07 jakob Exp $ */ /* $NetBSD: user.c,v 1.17 2000/04/14 06:26:55 simonb Exp $ */ /* @@ -1115,6 +1115,8 @@ usermgmt_usage(char *prog) } else if (strcmp(prog, "groupinfo") == 0) { (void) fprintf(stderr, "usage: %s [-e] [-v] group\n", prog); #endif + } else { + (void) fprintf(stderr, "This program must be called as user{info,mod,del} or group{info,mod,del},\n%s is not an understood name.\n", prog); } exit(EXIT_FAILURE); /* NOTREACHED */ |