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.
Included is a patch against aide-0.13.1, but it appears that it is still
a problem in aide-0.14.
Is this included patch the best approach to this problem?
Thanks,
Patrick Neely
diff -uNrp aide-0.13.1/include/compare_db.h aide-0.13.1.new/include/compare_db.h
--- aide-0.13.1/include/compare_db.h 2006-10-27 14:54:29.000000000 -0400
+++ aide-0.13.1.new/include/compare_db.h 2010-04-07 15:51:55.000000000 -0400
@@ -48,6 +48,6 @@ void init_rxlst(list* rxlst);
* compare_dbline()
* Return RETOK if same RETFAIL if not
*/
-int compare_dbline(db_line* old,db_line* new,DB_ATTR_TYPE ignorelist);
+long long unsigned compare_dbline(db_line* old,db_line* new,DB_ATTR_TYPE ignorelist);
#endif
diff -uNrp aide-0.13.1/src/compare_db.c aide-0.13.1.new/src/compare_db.c
--- aide-0.13.1/src/compare_db.c 2006-11-30 14:06:56.000000000 -0500
+++ aide-0.13.1.new/src/compare_db.c 2010-04-07 15:51:39.000000000 -0400
@@ -274,7 +274,7 @@ static int compare_str(const char *s1, c
- ignorelist kertoo mitä ei saa vertailla
*/
-int compare_dbline(db_line* l1,db_line* l2,DB_ATTR_TYPE ignorelist)
+long long unsigned compare_dbline(db_line* l1,db_line* l2,DB_ATTR_TYPE ignorelist)
{
#define easy_compare(a,b) \
_______________________________________________
Aide mailing list
[email protected]
https://mailman.cs.tut.fi/mailman/listinfo/aide