Imported Upstream version 2.7
[ossec-hids.git] / src / monitord / manage_files.c
index 7ba33fc..3a33475 100755 (executable)
@@ -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,