X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fmonitord%2Fmanage_files.c;h=3a33475987836921a33089a7edcd5c1cdb1cccd6;hp=7ba33fc1e06cf54ca06a0f6fc90bca0d112fa679;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/monitord/manage_files.c b/src/monitord/manage_files.c index 7ba33fc..3a33475 100755 --- a/src/monitord/manage_files.c +++ b/src/monitord/manage_files.c @@ -1,11 +1,12 @@ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/monitord/manage_files.c, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 2) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -27,13 +28,13 @@ void manage_files(int cday, int cmon, int cyear) #ifndef SOLARIS struct tm p_old; #endif - + char elogfile[OS_FLSIZE +1]; char elogfile_old[OS_FLSIZE +1]; - + char alogfile[OS_FLSIZE +1]; char alogfile_old[OS_FLSIZE +1]; - + char flogfile[OS_FLSIZE +1]; char flogfile_old[OS_FLSIZE +1]; @@ -46,7 +47,7 @@ void manage_files(int cday, int cmon, int cyear) #else pp_old = localtime(&tm_old); #endif - + memset(elogfile, '\0', OS_FLSIZE +1); memset(elogfile_old, '\0', OS_FLSIZE +1); @@ -60,7 +61,7 @@ void manage_files(int cday, int cmon, int cyear) * before compressing the file. */ sleep(mond.day_wait); - + /* Event logfile */ snprintf(elogfile, OS_FLSIZE, "%s/%d/%s/ossec-%s-%02d.log", @@ -88,7 +89,7 @@ void manage_files(int cday, int cmon, int cyear) months[cmon], "alerts", cday); - /* alert logfile old */ + /* alert logfile old */ snprintf(alogfile_old, OS_FLSIZE, "%s/%d/%s/ossec-%s-%02d.log", ALERTS, pp_old->tm_year+1900,