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

[ossec-dev] ossec-hids: rootcheck.c (HEAD) [meirm]



Module name:	ossec-hids
Changes by:	meirm	06/09/04 17:39:23

Modified files:
	rootcheck.c

Log message:
Description: Added -V switch to all daemons
Reviewed by: Daniel Cid, coded by Meir Michanie
Bug:

Index: rootcheck.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/rootcheck/rootcheck.c,v
diff -u -r1.13 -r1.14
--- rootcheck.c	7 Jul 2006 14:40:09 -0000	1.13
+++ rootcheck.c	4 Sep 2006 20:39:22 -0000	1.14
@@ -102,10 +102,13 @@
 #ifndef OSSECHIDS
     rootcheck.notify = SYSLOG;
     rootcheck.daemon = 0;
-    while((c = getopt(argc, argv, "strdhD:c:")) != -1)
+    while((c = getopt(argc, argv, "VstrdhD:c:")) != -1)
     {
         switch(c)
         {
+            case 'V':
+                print_version();
+                break;
             case 'h':
                 rootcheck_help();
                 break;


OSSEC home | Main Index | Thread Index


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