From: Tilman Sauerbeck Date: Sat, 2 Dec 2006 00:55:52 +0000 (+0100) Subject: Fixed setting up the flags for archive_read_extract(). X-Git-Url: http://gitweb/?a=commitdiff_plain;h=e83769cac3e8ccbe57b287467746c9c1a7254136;p=pkgutils-cross.git Fixed setting up the flags for archive_read_extract(). --- 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.