Here's a fix to a problem wherein aide --init omits files from the
database it creates. I don't know the exact mechanism of the failure,
but it's based on the fact that aide --init refers back to the tree of
files to determine whether the descendants of a directory need to be
included in the database (NODE_ADD_CHILDREN attribute), but
does not in fact build the tree. The code to build the tree explicitly
skips the step in the --init case, because it does not think the tree
will be needed.
This patch approaches the issuing of messages under verbosity
control differently than a recent fix in the same area: It uses error()
instead of printf(). That seems to me the better way to go.
Log in to post a comment.