I (ignore changed filename) does not work with c (ctime)
Brought to you by:
hvhaugwitz,
rvdb
The new config definition I (ignore changed filename)
does not work when c (ctime) is also enabled. The
result of a --check after moving a file is:
Added files:
added:/tmp/test2
Removed files:
removed:/tmp/test
Logged In: YES
user_id=330646
This is actually working as designed, since 'c' means
'ctime' which means time of last status change. When the
filename is changed, the ctime is updated. So 'c' and 'I'
are incompatible by design.
Post from Pablo:
One propably
should give warning about if rule has c and I enabled at the
same time (or
just ignore c, if we are checking for changed filenames? For
implementatio check patch...)
--- gen_list.c Fri Oct 28 16:33:39 2005
+++ gen_list.c.orig Mon Oct 3 08:58:31 2005
@@ -1111,7 +1110,7 @@
oldData->filename,oldData->attr,newData->attr);
}
- localignorelist|=ignorelist;
+ localignorelist|=ignorelist|DB_CTIME;
/* Free the data if same else leave as is for
report_tree */
if(compare_dbline(oldData, newData,
localignorelist)==RETOK){
Duke NEMO / C.O.M.A
alias pablo the pallo virolainen
Logged In: YES
user_id=330646
Using 'c' and 'I' together actually makes aide report based
on filename, not inode. So ignoring 'c' seems the right
thing to do.