From 0ea62aa939f3e8a6aebe45cd30d760e5f7a6616f Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Sun, 29 Jan 2012 08:38:55 +0000 Subject: fix previous: grp is unused here just check the return value spotted by Jeremie Courreges-Anglas --- usr.sbin/user/user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/user/user.c b/usr.sbin/user/user.c index f6599c86d84..690b50a3d25 100644 --- a/usr.sbin/user/user.c +++ b/usr.sbin/user/user.c @@ -1,4 +1,4 @@ -/* $OpenBSD: user.c,v 1.89 2012/01/28 14:25:45 ajacoutot Exp $ */ +/* $OpenBSD: user.c,v 1.90 2012/01/29 08:38:54 ajacoutot Exp $ */ /* $NetBSD: user.c,v 1.69 2003/04/14 17:40:07 agc Exp $ */ /* @@ -1524,7 +1524,7 @@ moduser(char *login_name, char *newlogin, user_t *up) } if (up->u_flags & F_SETSECGROUP) { for (i = 0 ; i < up->u_groupc ; i++) { - if ((grp = getgrnam(up->u_groupv[i])) == NULL) { + if (getgrnam(up->u_groupv[i]) == NULL) { (void) close(ptmpfd); pw_abort(); errx(EXIT_FAILURE, "aborting, group `%s' does not exist", -- cgit v1.2.3