CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed setting up the flags for archive_read_extract().
authorTilman Sauerbeck <tilman@crux.nu>
Sat, 2 Dec 2006 00:55:52 +0000 (01:55 +0100)
committerTilman Sauerbeck <tilman@crux.nu>
Sat, 2 Dec 2006 00:55:52 +0000 (01:55 +0100)
pkgutil.cc

index b4d419bde9a3d04ddf99be010a9c106aeac6d648..f5b430da72d6961c0879964c3a66d9f8ba6f5d2c 100644 (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.