Fixed setting up the flags for archive_read_extract().

This commit is contained in:
Tilman Sauerbeck 2006-12-02 01:55:52 +01:00
parent 25efd91b9e
commit e83769cac3

View File

@ -422,7 +422,7 @@ void pkgutil::pkg_install(const string& filename, const set<string>& 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.