diff options
author | billf <billf@FreeBSD.org> | 1999-07-01 17:59:17 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 1999-07-01 17:59:17 +0000 |
commit | 56161029de9497ca5c9fc5ed2c74778324a869b0 (patch) | |
tree | 6a36f85c360e614aef744920ac487c6cd3d77d63 /usr.bin | |
parent | 140b47277bef322c164be5984d1b3c77e3162a14 (diff) | |
download | FreeBSD-src-56161029de9497ca5c9fc5ed2c74778324a869b0.zip FreeBSD-src-56161029de9497ca5c9fc5ed2c74778324a869b0.tar.gz |
Fix ambigious else.
Reviewed By: eivind
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/su/su.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index 9fdc9e7..390611d 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)su.c 8.3 (Berkeley) 4/2/94"; #endif static const char rcsid[] = - "$Id: su.c,v 1.28 1998/09/21 07:44:25 roberto Exp $"; + "$Id: su.c,v 1.29 1998/10/09 20:14:48 markm Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -272,8 +272,9 @@ main(argc, argv) if (!*g) if (gid == 0) break; - else + else { errx(1, "you are not in the correct group to su %s.", user); + } if (strcmp(username, *g) == 0) { #ifdef WHEELSU iswheelsu = 1; |