780 |
|
|
781 |
/* if we are testing for changes only, the value is variable */ |
/* if we are testing for changes only, the value is variable */ |
782 |
if(cs->test_changes) { |
if(cs->test_changes) { |
|
Event_post(s, EVENT_CHANGED, TRUE, cs->action, |
|
|
"'%s' checksum was changed for %s", s->name, s->path); |
|
783 |
/* reset expected value for next cycle */ |
/* reset expected value for next cycle */ |
784 |
FREE(cs->hash); |
FREE(cs->hash); |
785 |
cs->hash= xstrdup(s->inf->cs_sum); |
cs->hash= xstrdup(s->inf->cs_sum); |
786 |
|
Event_post(s, EVENT_CHANGED, TRUE, cs->action, |
787 |
|
"'%s' checksum was changed for %s", s->name, s->path); |
788 |
} else { |
} else { |
789 |
/* we are testing constant value for failed or passed state */ |
/* we are testing constant value for failed or passed state */ |
790 |
Event_post(s, EVENT_CHECKSUM, TRUE, cs->action, |
Event_post(s, EVENT_CHECKSUM, TRUE, cs->action, |