]> granicus.if.org Git - sudo/commitdiff
Fix pasto and add default return value.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 12 Dec 2009 16:27:02 +0000 (16:27 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 12 Dec 2009 16:27:02 +0000 (16:27 +0000)
pwutil.c

index e51a438c63dfbacc34b71e70451ba4b9755591f0..9e93c59e9cf80697d7c2febd21af7349af8ea9f1 100644 (file)
--- a/pwutil.c
+++ b/pwutil.c
@@ -594,9 +594,10 @@ user_in_group(pw, group)
 #else
        if (grp != NULL && grp->gr_mem != NULL) {
            for (gr_mem = grp->gr_mem; *gr_mem; gr_mem++)
-               if (strcmp(*gr_mem, user) == 0)
+               if (strcmp(*gr_mem, pw->pw_name) == 0)
                    return(TRUE);
        }
 #endif
     }
+    return(FALSE);
 }