aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/su/su.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c
index 1745067126ed..0a524c6159a4 100644
--- a/usr.bin/su/su.c
+++ b/usr.bin/su/su.c
@@ -257,7 +257,10 @@ main(argc, argv)
if (gid == 0)
break;
else
- errx(1, "you are not in the correct group to su %s.", user);
+ errx(1,
+ "you are not in the correct group (%s) to su %s.",
+ gr->gr_name,
+ user);
}
if (strcmp(username, *g) == 0) {
#ifdef WHEELSU