projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
novi upstream verzije 2.8.3
[ossec-hids.git]
/
src
/
monitord
/
compress_log.c
diff --git
a/src/monitord/compress_log.c
b/src/monitord/compress_log.c
index
5ebfc68
..
c7d75f7
100755
(executable)
--- a/
src/monitord/compress_log.c
+++ b/
src/monitord/compress_log.c
@@
-19,7
+19,7
@@
void OS_CompressLog(char *logfile)
{
FILE *log;
void OS_CompressLog(char *logfile)
{
FILE *log;
- gzFile *zlog;
+ gzFile zlog;
char logfileGZ[OS_FLSIZE + 1];
int len, err;
char logfileGZ[OS_FLSIZE + 1];
int len, err;
@@
-40,7
+40,7
@@
void OS_CompressLog(char *logfile)
/* Setting the umask */
umask(0027);
/* Setting the umask */
umask(0027);
-
+
/* Creating the gzip file name */
snprintf(logfileGZ, OS_FLSIZE, "%s.gz", logfile);
/* Creating the gzip file name */
snprintf(logfileGZ, OS_FLSIZE, "%s.gz", logfile);
@@
-80,6
+80,6
@@
void OS_CompressLog(char *logfile)
return;
}
return;
}
-
+
/* EOF */
/* EOF */