-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove option <remove_old-diff> #1915
Conversation
a058f58
to
ca7b856
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW this issue also needs documentation.
src/config/syscheck-config.c
Outdated
@@ -759,7 +759,7 @@ int Read_Syscheck(const OS_XML *xml, XML_NODE node, void *configp, __attribute__ | |||
const char *xml_registry_ignore = "registry_ignore"; | |||
const char *xml_auto_ignore = "auto_ignore"; | |||
const char *xml_alert_new_files = "alert_new_files"; | |||
const char *xml_remove_old_diff = "remove_old_diff"; | |||
const char *xml_remove_old_diff = "remove_old_diff"; // Deprecated since 3.7.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecated since 3.8.0.
src/config/syscheck-config.c
Outdated
merror(XML_VALUEERR, node[i]->element, node[i]->content); | ||
return (OS_INVALID); | ||
} | ||
//Deprecated since 3.7.1, aplied by default... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3.8.0 so far...
Related issues:
The option <remove_old_diff> is disabled. It becomes a mandatory behavior. In case that for old configurations it appears no warn message is shown, simply continues the execution.
Test:
report_changes
is correct. The files are deleted when: