From e83769cac3e8ccbe57b287467746c9c1a7254136 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sat, 2 Dec 2006 01:55:52 +0100 Subject: [PATCH] Fixed setting up the flags for archive_read_extract(). --- pkgutil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgutil.cc b/pkgutil.cc index b4d419b..f5b430d 100644 --- a/pkgutil.cc +++ b/pkgutil.cc @@ -422,7 +422,7 @@ void pkgutil::pkg_install(const string& filename, const set& keep_list, (real_filename.c_str())); // Extract file - if (archive_read_extract(archive, entry, ARCHIVE_EXTRACT_OWNER && ARCHIVE_EXTRACT_PERM) != + if (archive_read_extract(archive, entry, ARCHIVE_EXTRACT_OWNER | ARCHIVE_EXTRACT_PERM) != ARCHIVE_OK) { // If a file fails to install we just print an error message and // continue trying to install the rest of the package. -- 2.26.2