diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-06-25 10:37:37 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-06-25 10:37:37 +0300 |
commit | ccd3a804e33fb149f6db5b4dc0a78697dfe074d7 (patch) | |
tree | c92874bc4cc59ba20f55c43a0706eea486e4b0bb /lib | |
parent | 406a410bc3b4f245803dec59c1ee4a72aa10e313 (diff) | |
download | rpm-ccd3a804e33fb149f6db5b4dc0a78697dfe074d7.tar.gz rpm-ccd3a804e33fb149f6db5b4dc0a78697dfe074d7.tar.bz2 rpm-ccd3a804e33fb149f6db5b4dc0a78697dfe074d7.zip |
Nuke ugly /var/log/lastlog kludgery.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmfi.c | 2 | ||||
-rw-r--r-- | lib/transaction.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/lib/rpmfi.c b/lib/rpmfi.c index 38bee29a3..3825f90d2 100644 --- a/lib/rpmfi.c +++ b/lib/rpmfi.c @@ -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); diff --git a/lib/transaction.c b/lib/transaction.c index 27bdb85ca..f92fa68f3 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -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)) { |