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

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



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

Modified files:
	help.c

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

Index: help.c
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/shared/help.c,v
diff -u -r1.2 -r1.3
--- help.c	2 May 2006 00:44:45 -0000	1.2
+++ help.c	4 Sep 2006 20:39:23 -0000	1.3
@@ -33,6 +33,7 @@
     {
         print_out("");
         print_out("  %s: -[thd] [-u user] [-g group] [-c config]",daemons[i]);
+        print_out("    -V          Version and license message");
         print_out("    -h          This help message");
         print_out("    -d          Execute in debug mode");
         print_out("    -t          Test configuration");
@@ -42,6 +43,15 @@
         i++;
     }
     print_out("");
+    exit(1);
+}
+
+void print_version()
+{
+    print_out("");
+    print_out("%s %s - %s", __name, __version, __author);
+    print_out("");
+    print_out("%s",__license);
     exit(1);
 }
 


OSSEC home | Main Index | Thread Index


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