[Aide] hash cannot be calculated
Virolainen Pablo
pablo at cs.tut.fi
Sat Nov 6 13:55:50 EET 2004
On Fri, 5 Nov 2004, Richard van den Berg wrote:
> John Kristoff wrote:
> > Everyone once in awhile I've seen this also, but it does not re-appear
> > during the next --check run. I've not been able to figure out why this
> > happens as of yet. It appears to be a bug of some sort, since the file(s)
> > reported have not actually changed in anyway as far as I can tell.
>
> This happens during a --check as well? Please use the patch that Pablo
> posted (should be in tomorrows snapshot). I'm very interested to see
> which attribute has changed.
Only small problem. When you are tired you will make some errors. This
time | was replased with & (I wanted to do bitwise or not bitwise and
like I typed).
So here is a patch for it.
Duke NEMO / C.O.M.A
alias pablo the pallo virolainen
--- aide-CVS-20041106/src/do_md.c Fri Nov 5 11:55:21 2004
+++ aide-CVS-20041102/src/do_md.c Sat Nov 6 13:49:04 2004
@@ -95,17 +95,17 @@
}
#define stat_cmp_helper(n,n2) ((f1->n==f2->n)*n2)
- return (stat_cmp_helper(st_ino,DB_INODE)&
- stat_cmp_helper(st_mode,DB_PERM)&
- stat_cmp_helper(st_nlink,DB_LNKCOUNT)&
- stat_cmp_helper(st_size,DB_SIZE)&
- stat_cmp_helper(st_mtime,DB_MTIME)&
- stat_cmp_helper(st_ctime,DB_CTIME)&
- stat_cmp_helper(st_blocks,DB_BCOUNT)&
- stat_cmp_helper(st_blksize,DB_BSIZE)&
- stat_cmp_helper(st_rdev,DB_RDEV)&
- stat_cmp_helper(st_gid,DB_GID)&
- stat_cmp_helper(st_uid,DB_UID)&
+ return (stat_cmp_helper(st_ino,DB_INODE)|
+ stat_cmp_helper(st_mode,DB_PERM)|
+ stat_cmp_helper(st_nlink,DB_LNKCOUNT)|
+ stat_cmp_helper(st_size,DB_SIZE)|
+ stat_cmp_helper(st_mtime,DB_MTIME)|
+ stat_cmp_helper(st_ctime,DB_CTIME)|
+ stat_cmp_helper(st_blocks,DB_BCOUNT)|
+ stat_cmp_helper(st_blksize,DB_BSIZE)|
+ stat_cmp_helper(st_rdev,DB_RDEV)|
+ stat_cmp_helper(st_gid,DB_GID)|
+ stat_cmp_helper(st_uid,DB_UID)|
stat_cmp_helper(st_dev,DB_DEV));
}
More information about the Aide
mailing list