Doh, not-enough-caffeine thinko in 685bf3b6ef32bc49393d1f287b7ecf3e6d21ab09
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 25 Apr 2013 09:36:06 +0000 (12:36 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Jun 2013 09:25:21 +0000 (12:25 +0300)
(cherry picked from commit e97bccbd78233d6af9175f274a928e897d790550)

lib/rpmfi.c

index 6177e6f..5c032c2 100644 (file)
@@ -500,7 +500,7 @@ int rpmfiCompareIndex(rpmfi afi, int aix, rpmfi bfi, int bix)
        (rpmfiFFlagsIndex(bfi, bix) & RPMFILE_GHOST)) return 0;
 
     /* Mode difference is a conflict, except for symlinks */
-    if ((awhat != LINK && rpmfiWhatis(bmode) != LINK) && amode != bmode)
+    if (!(awhat == LINK && rpmfiWhatis(bmode) == LINK) && amode != bmode)
        return 1;
 
     if (awhat == LINK || awhat == REG) {