[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ossec-cvs] ossec-hids: os_lib_syscheck.php (HEAD) [davelowe]



Module name:	ossec-hids
Changes by:	davelowe	07/08/08 06:15:12

Modified files:
	os_lib_syscheck.php

Log message:
More work to filter integrity results. Trying to fix the ALL option pt2

Index: os_lib_syscheck.php
===================================================================
RCS file: /usr/cvsroot/ossec-ui/ossec/Lib/os_lib_syscheck.php,v
diff -u -r1.4 -r1.5
--- os_lib_syscheck.php	8 Aug 2007 08:45:44 -0000	1.4
+++ os_lib_syscheck.php	8 Aug 2007 09:15:12 -0000	1.5
@@ -352,29 +352,30 @@
                 }
             }
 
-	    if($agent_name == "All")
-	    {
-	       $_name=NULL;
-	    }
             /* Looking for agent name */
-            elseif(trim($_name) != $agent_name)
+	    if($agent_name == "All")
             {
-                continue;
+                $syscheck_list{$_name}{'list'} = 
+                    __os_getchanges($sk_dir."/".$file, $g_last_changes, $agent_name);
+                $syscheck_count++;
+                $syscheck_list{'global_list'} = $g_last_changes;
+                return($syscheck_list);
             }
-	    elseif(!$agent_name == "All")
+            elseif(trim($_name) == $agent_name)
+	    {
+                $syscheck_list{$_name}{'list'} = 
+                    __os_getchanges($sk_dir."/".$file, $g_last_changes, $agent_name);
+                $syscheck_count++;
+                $syscheck_list{'global_list'} = $g_last_changes;
+                return($syscheck_list);
+	    }
+	    else
 	    {
-    	        continue;
+		continue;
 	    }
-            $syscheck_list{$_name}{'list'} = 
-                __os_getchanges($sk_dir."/".$file, $g_last_changes, $agent_name);
-                
-            $syscheck_count++;
         }
         closedir($dh);
-        $syscheck_list{'global_list'} = $g_last_changes;
-        return($syscheck_list);
     }
-
     return(NULL);
 }
 


OSSEC home | Main Index | Thread Index


OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.