Skip to content

Commit e4d166a

Browse files
committed
Issue 827, handle large file rotation
Signed-off-by: Scott R. Shinn <scott@atomicorp.com>
1 parent 2ecf480 commit e4d166a

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ CLEANFULL?=no
4444
export MYLDFLAGS= "${LDFLAGS}"
4545
export MYCFLAGS= "${CFLAGS}"
4646

47-
DEFINES=-DMAX_AGENTS=${MAXAGENTS} -DOSSECHIDS
47+
DEFINES+=-DMAX_AGENTS=${MAXAGENTS} -DOSSECHIDS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
4848
DEFINES+=-DDEFAULTDIR=\"${PREFIX}\"
4949
DEFINES+=-DUSER=\"${OSSEC_USER}\"
5050
DEFINES+=-DREMUSER=\"${OSSEC_USER_REM}\"

src/os_crypto/md5/md5_op.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@
1111
* APIs for many crypto operations
1212
*/
1313

14-
#include <stdio.h>
15-
#include <string.h>
16-
14+
#include "headers/shared.h"
1715
#include "md5_op.h"
1816
#include "md5.h"
19-
#include "headers/defs.h"
2017

2118

2219
int OS_MD5_File(const char *fname, os_md5 output, int mode)

src/os_crypto/md5_sha1/md5_sha1_op.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@
77
* Foundation
88
*/
99

10-
#include <stdio.h>
11-
#include <string.h>
12-
10+
#include "headers/shared.h"
1311
#include "md5_sha1_op.h"
1412
#include "../md5/md5.h"
1513
#include "../sha1/sha.h"
16-
#include "headers/defs.h"
1714

1815

1916
int OS_MD5_SHA1_File(const char *fname, const char *prefilter_cmd, os_md5 md5output, os_sha1 sha1output, int mode)

src/os_crypto/sha1/sha1_op.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
77
* Foundation
88
*/
99

10-
#include <stdio.h>
11-
#include <string.h>
12-
10+
#include "headers/shared.h"
1311
#include "sha1_op.h"
14-
#include "headers/defs.h"
1512

1613
/* OpenSSL SHA-1
1714
* Only use if OpenSSL is not available

0 commit comments

Comments
 (0)