Menu

#27 I (ignore changed filename) does not work with c (ctime)

CVS version
closed-wont-fix
None
5
2005-10-28
2004-11-12
No

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

Discussion

  • Richard van den Berg

    • milestone: --> CVS version
    • assigned_to: nobody --> rvdb
    • status: open --> closed-wont-fix
     
  • Richard van den Berg

    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

     
  • Richard van den Berg

    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.

     

Log in to post a comment.