dodan override za lintian
[ossec-hids.git] / src / analysisd / makelists.c
index 9299592..ee1a714 100644 (file)
@@ -1,4 +1,5 @@
-/* @(#) $Id$ */
+/* @(#) $Id: ./src/analysisd/makelists.c, 2011/09/08 dcid Exp $
+ */
 
 /* Copyright (C) 2010 Trend Micro Inc.
  * All rights reserved.
@@ -8,7 +9,7 @@
  * License (version 2) as published by the FSF - Free Software
  * Foundation.
  *
- * License details at the LICENSE file included with OSSEC or 
+ * License details at the LICENSE file included with OSSEC or
  * online at: http://www.ossec.net/en/licensing.html
  */
 
 /* Part of the OSSEC
  * Available at http://www.ossec.net
  */
-  
+
 
 /* ossec-analysisd.
  * Responsible for correlation and log decoding.
  */
-#ifdef ARGV0   
-    #undef ARGV0   
+#ifdef ARGV0
+    #undef ARGV0
     #define ARGV0 "ossec-testrule"
 #endif
 
@@ -55,7 +56,7 @@ void Lists_OP_CreateLists();
 void makelist_help(const char *prog)
 {
     print_out(" ");
-    print_out("%s %s - %s (%s)", __name, __version, __author, __contact);
+    print_out("%s %s - %s (%s)", __ossec_name, __version, __author, __contact);
     print_out("%s", __site);
     print_out(" ");
     print_out("  %s: -[Vhdt] [-u user] [-g group] [-c config] [-D dir]", prog);
@@ -117,6 +118,7 @@ int main(int argc, char **argv)
                 if(!optarg)
                     ErrorExit("%s: -D needs an argument",ARGV0);
                 dir = optarg;
+                break;
             case 'c':
                 if(!optarg)
                     ErrorExit("%s: -c needs an argument",ARGV0);
@@ -143,7 +145,7 @@ int main(int argc, char **argv)
     /* Found user */
     debug1(FOUND_USER, ARGV0);
 
-    
+
     /* Reading configuration file */
     if(GlobalConf(cfg) < 0)
     {
@@ -151,8 +153,8 @@ int main(int argc, char **argv)
     }
 
     debug1(READ_CONFIG, ARGV0);
-    
-    /* Setting the group */    
+
+    /* Setting the group */
     if(Privsep_SetGroup(gid) < 0)
         ErrorExit(SETGID_ERROR,ARGV0,group);
 
@@ -161,8 +163,8 @@ int main(int argc, char **argv)
         ErrorExit(CHROOT_ERROR,ARGV0,dir);
 
     nowChroot();
-    
-    
+
+
 
     /* Createing the lists for use in rules */
     Lists_OP_CreateLists();