summaryrefslogtreecommitdiffstats
path: root/usr.bin/su
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-07-01 17:59:17 +0000
committerbillf <billf@FreeBSD.org>1999-07-01 17:59:17 +0000
commit56161029de9497ca5c9fc5ed2c74778324a869b0 (patch)
tree6a36f85c360e614aef744920ac487c6cd3d77d63 /usr.bin/su
parent140b47277bef322c164be5984d1b3c77e3162a14 (diff)
downloadFreeBSD-src-56161029de9497ca5c9fc5ed2c74778324a869b0.zip
FreeBSD-src-56161029de9497ca5c9fc5ed2c74778324a869b0.tar.gz
Fix ambigious else.
Reviewed By: eivind
Diffstat (limited to 'usr.bin/su')
-rw-r--r--usr.bin/su/su.c5
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;
OpenPOWER on IntegriCloud