]> granicus.if.org Git - sudo/commitdiff
typo
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 13 Jan 1998 15:32:41 +0000 (15:32 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 13 Jan 1998 15:32:41 +0000 (15:32 +0000)
parse.c

diff --git a/parse.c b/parse.c
index 1c3ce614a81d815ed679c33e836799a48aeaa69a..a3373c4ab28bd4d97856e09a9e15ec128899eeff 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -218,7 +218,7 @@ int command_matches(cmnd, user_args, path, sudoers_args)
     static char *c;
 
     /* don't bother with pseudo commands like "validate" */
-    if (strchr(cmnd, '/') != NULL)
+    if (strchr(cmnd, '/') == NULL)
        return(FALSE);
 
     /* only need to stat cmnd once since it never changes */