[Aide] AIDE compare_dbline function returns int

Patrick Neely patrick.neely at gtri.gatech.edu
Sat Apr 10 00:33:04 EEST 2010


Richard van den Berg wrote:
> On 9-4-10 22:00 , Patrick Neely wrote:
>   
>> The compare_dbline functions returns an int, even though it can contain
>> numbers larger than type int.  For example, DB_SELINUX, DB_XATTRS, and
>> DB_WHIRLPOOL are all larger than the int return value.
>>    
>>     
>
> You're right, but since the return value of compare_dbline() is only 
> ever compared to 0, I don't think it matters all that much.
>   

In the case where the only difference was DB_SELINUX, which is 2^32, we 
saw an integer return value of zero and therefore that file did not 
register as a database difference.

You're right, DB_ATTR_TYPE is a better way.

Thanks for the help on this,
Patrick


More information about the Aide mailing list