Index: lib/rpmfi.c =================================================================== RCS file: /cvs/devel/rpm/lib/rpmfi.c,v retrieving revision 2.54.2.2 diff -u -u -r2.54.2.2 rpmfi.c --- lib/rpmfi.c 5 Jul 2004 19:20:37 -0000 2.54.2.2 +++ lib/rpmfi.c 23 Nov 2004 17:31:50 -0000 @@ -592,6 +592,8 @@ */ if (dbWhat == REG) { const unsigned char * omd5, * nmd5; + /* XXX avoid md5 on sparse /var/log/lastlog file. */ + if (strcmp(fn, "/var/log/lastlog")) if (domd5(fn, buffer, 0, NULL)) return FA_CREATE; /* assume file has been removed */ omd5 = rpmfiMD5(ofi); Index: lib/transaction.c =================================================================== RCS file: /cvs/devel/rpm/lib/transaction.c,v retrieving revision 1.302.2.5 diff -u -u -r1.302.2.5 transaction.c --- lib/transaction.c 29 Sep 2004 18:28:29 -0000 1.302.2.5 +++ lib/transaction.c 23 Nov 2004 17:31:50 -0000 @@ -613,6 +613,7 @@ } /* Here is a pre-existing modified config file that needs saving. */ + if (strcmp(fn, "/var/log/lastlog")) /* XXX sparse file avoidance */ { char md5sum[50]; const unsigned char * MD5 = rpmfiMD5(fi); if (!domd5(fn, md5sum, 0, NULL) && memcmp(MD5, md5sum, 16)) {