X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fsyscheckd%2Fsyscheck-baseline.c;h=059aa2531d78f454c246c7b52af621040126ab5e;hp=2a77eb14849ca1d9cd342c2fe655d1fc7957b96e;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/syscheckd/syscheck-baseline.c b/src/syscheckd/syscheck-baseline.c index 2a77eb1..059aa25 100755 --- a/src/syscheckd/syscheck-baseline.c +++ b/src/syscheckd/syscheck-baseline.c @@ -1,4 +1,5 @@ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/syscheckd/syscheck-baseline.c, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 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 */ @@ -58,20 +59,20 @@ int main(int argc, char **argv) { int c,r,no_stop = 1; int test_config = 0; - + char *cfg = DEFAULTCPATH; char *input_f = NULL; char *output_f = NULL; - - + + /* Zeroing the structure */ syscheck.workdir = NULL; /* Setting the name */ OS_SetName(ARGV0); - - + + while((c = getopt(argc, argv, "VtdshD:c:i:o:")) != -1) { switch(c) @@ -84,7 +85,7 @@ int main(int argc, char **argv) break; case 's': no_stop = 0; - break; + break; case 'd': nowDebug(); break; @@ -110,10 +111,10 @@ int main(int argc, char **argv) break; case 't': test_config = 1; - break; + break; default: help(ARGV0); - break; + break; } } @@ -140,13 +141,13 @@ int main(int argc, char **argv) /* Reading internal options */ read_internal(no_stop); - - + + /* Exit if testing config */ if(test_config) exit(0); - + /* Setting default values */ if(syscheck.workdir == NULL) syscheck.workdir = DEFAULTDIR; @@ -156,7 +157,7 @@ int main(int argc, char **argv) syscheck.db = (char *)calloc(1024,sizeof(char)); if(syscheck.db == NULL) ErrorExit(MEM_ERROR,ARGV0); - + snprintf(syscheck.db,1023, output_f); @@ -181,20 +182,20 @@ int main(int argc, char **argv) /* Start the signal handling */ StartSIG(ARGV0); - + /* Start up message */ verbose(STARTUP_MSG, ARGV0, getpid()); - + /* Create local database */ create_db(0); - + fflush(syscheck.fp); - return(0); + return(0); }