diff --git a/lib/transaction.c b/lib/transaction.c index 855bf2da4..c46860369 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -415,7 +415,7 @@ static void handleOverlappedFiles(rpmts ts, rpmFpHash ht, rpmte p, rpmfi fi) */ /* Locate this overlapped file in the set of added/removed packages. */ - for (j = 0; j < numRecs && recs[j].p != p; j++) + for (j = 0; j < numRecs && !(recs[j].p == p && recs[j].fileno == i); j++) {}; /* Find what the previous disposition of this file was. */