+ if (buf[5] == 's' || buf[5] == 'n') {
+ fullalert = seechanges_addfile(file_name);
+ if (fullalert) {
+ snprintf(alert_msg, OS_MAXSTR, "%s %s\n%s", c_sum, file_name, fullalert);
+ free(fullalert);
+ fullalert = NULL;
+ } else {
+ snprintf(alert_msg, 912, "%s %s", c_sum, file_name);
+ }
+ } else {
+ snprintf(alert_msg, 912, "%s %s", c_sum, file_name);
+ }
+ #endif
+ send_syscheck_msg(alert_msg);