aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/su/su.c
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1999-07-01 17:59:17 +0000
committerBill Fumerola <billf@FreeBSD.org>1999-07-01 17:59:17 +0000
commitf32e012b12d42eb94c9bdbd9e327488c5bfbe614 (patch)
treef6ddb7ef1d4473a3a60360dd371a65d9f237223b /usr.bin/su/su.c
parent2da5c22ea345fa6a57121560e79c47bc125a3959 (diff)
downloadsrc-f32e012b12d42eb94c9bdbd9e327488c5bfbe614.tar.gz
src-f32e012b12d42eb94c9bdbd9e327488c5bfbe614.zip
Fix ambigious else.
Reviewed By: eivind
Notes
Notes: svn path=/head/; revision=48403
Diffstat (limited to 'usr.bin/su/su.c')
-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 9fdc9e7b16ea..390611dc44b8 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;