]> granicus.if.org Git - sudo/commitdiff
Use runas_matches in alias_matches() now that we have it.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 15 Nov 2004 18:06:11 +0000 (18:06 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 15 Nov 2004 18:06:11 +0000 (18:06 +0000)
match.c

diff --git a/match.c b/match.c
index 6d77d98c03fc50a07be080cf37c54f04dc06d630..c3ddc0fd882f38149b013715bce10f916a2fab73 100644 (file)
--- a/match.c
+++ b/match.c
@@ -273,8 +273,9 @@ alias_matches(name, type, v1, v2)
            case CMNDALIAS:
                return(cmnd_matches(v1, v2, a->first_member));
            case USERALIAS:
-           case RUNASALIAS:
                return(user_matches(v1, a->first_member));
+           case RUNASALIAS:
+               return(runas_matches(v1, a->first_member));
        }
     }
     return(UNSPEC);