From 62b514f6e1255037e7a55e3ab6fc71c5d9219dfb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 18 Aug 2009 23:59:19 +0200 Subject: [PATCH] lib/unpack.c: fix the logic of an inverted conditional. --HG-- extra : convert_revision : xtraeme%40gmail.com-20090818215919-xv54d9a2vobsizlr --- lib/unpack.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/unpack.c b/lib/unpack.c index 570736af..553d81d3 100644 --- a/lib/unpack.c +++ b/lib/unpack.c @@ -324,8 +324,7 @@ unpack_archive_fini(struct archive *ar, prop_dictionary_t pkg, strcmp("./REMOVE", archive_entry_pathname(entry)) && strcmp("./files.plist", archive_entry_pathname(entry)) && strcmp("./props.plist", archive_entry_pathname(entry))) { - if (((flags & XBPS_FLAG_FORCE) == 0) || - essential == false) { + if (((flags & XBPS_FLAG_FORCE) == 0) && !essential) { eflags |= ARCHIVE_EXTRACT_NO_OVERWRITE; eflags |= ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER; }