projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dodan override za lintian
[ossec-hids.git]
/
src
/
syscheckd
/
run_realtime.c
diff --git
a/src/syscheckd/run_realtime.c
b/src/syscheckd/run_realtime.c
index
839e5b8
..
20d8fb2
100755
(executable)
--- a/
src/syscheckd/run_realtime.c
+++ b/
src/syscheckd/run_realtime.c
@@
-74,9
+74,12
@@
int realtime_checksumfile(char *file_name)
if(strcmp(c_sum, buf+6) != 0)
{
if(strcmp(c_sum, buf+6) != 0)
{
- char *fullalert = NULL;
char alert_msg[OS_MAXSTR +1];
alert_msg[OS_MAXSTR] = '\0';
char alert_msg[OS_MAXSTR +1];
alert_msg[OS_MAXSTR] = '\0';
+ #ifdef WIN32
+ snprintf(alert_msg, 912, "%s %s", c_sum, file_name);
+ #else
+ char *fullalert = NULL;
if(buf[5] == 's' || buf[5] == 'n')
{
fullalert = seechanges_addfile(file_name);
if(buf[5] == 's' || buf[5] == 'n')
{
fullalert = seechanges_addfile(file_name);
@@
-95,6
+98,7
@@
int realtime_checksumfile(char *file_name)
{
snprintf(alert_msg, 912, "%s %s", c_sum, file_name);
}
{
snprintf(alert_msg, 912, "%s %s", c_sum, file_name);
}
+ #endif
send_syscheck_msg(alert_msg);
return(1);
send_syscheck_msg(alert_msg);
return(1);