File sudo-1.6.9p17-CVE-2010-0426.diff of Package sudo

Index: parse.c
===================================================================
--- parse.c.orig
+++ parse.c
@@ -259,7 +259,7 @@ command_matches(sudoers_cmnd, sudoers_ar
     DIR *dirp;
 
     /* Check for pseudo-commands */
-    if (strchr(user_cmnd, '/') == NULL) {
+    if (sudoers_cmnd[0] != '/') {
 	/*
 	 * Return true if both sudoers_cmnd and user_cmnd are "sudoedit" AND
 	 *  a) there are no args in sudoers OR
openSUSE Build Service is sponsored by