]> granicus.if.org Git - sudo/commitdiff
Rename label to be accurate
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 10 Dec 2009 19:37:56 +0000 (19:37 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 10 Dec 2009 19:37:56 +0000 (19:37 +0000)
match.c

diff --git a/match.c b/match.c
index 54f59c4fe96ca66e06d010109f3e64aa0ac3316a..2fe853c7e0129260fcd33ac99ce68dda83e4cf06 100644 (file)
--- a/match.c
+++ b/match.c
@@ -834,11 +834,11 @@ usergr_matches(group, user, pw)
 
     /* look up user's primary gid in the passwd file */
     if (pw == NULL && (pw = sudo_getpwnam(user)) == NULL)
-       goto try_supplementary;
+       goto check_membership;
 
     /* check against user's primary (passwd file) gid */
     if ((grp = sudo_getgrnam(group)) == NULL)
-       goto try_supplementary;
+       goto check_membership;
     if (grp->gr_gid == pw->pw_gid)
        return(TRUE);
 
@@ -852,7 +852,7 @@ usergr_matches(group, user, pw)
                return(TRUE);
     }
 
-try_supplementary:
+check_membership:
     if (grp != NULL && grp->gr_mem != NULL) {
        for (cur = grp->gr_mem; *cur; cur++)
            if (strcmp(*cur, user) == 0)