Nuke ugly /var/log/lastlog kludgery.
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 25 Jun 2007 07:37:37 +0000 (10:37 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 25 Jun 2007 07:37:37 +0000 (10:37 +0300)
lib/rpmfi.c
lib/transaction.c

index 38bee29..3825f90 100644 (file)
@@ -593,8 +593,6 @@ fileAction rpmfiDecideFate(const rpmfi ofi, rpmfi nfi, int skipMissing)
     memset(buffer, 0, sizeof(buffer));
     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 27bdb85..f92fa68 100644 (file)
@@ -645,8 +645,6 @@ assert(otherFi != NULL);
            }
                
            /* Here is a pre-existing modified config file that needs saving. */
-           /* XXX avoid md5 on sparse /var/log/lastlog file. */
-           if (strcmp(fn, "/var/log/lastlog"))
            {   char md5sum[50];
                const unsigned char * MD5 = rpmfiMD5(fi);
                if (!domd5(fn, md5sum, 0, NULL) && memcmp(MD5, md5sum, 16)) {