CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
preserve owner/permissions when extracting
authorSimone Rota <sip@crux.nu>
Sat, 2 Dec 2006 00:43:19 +0000 (01:43 +0100)
committerSimone Rota <sip@crux.nu>
Sat, 2 Dec 2006 00:43:19 +0000 (01:43 +0100)
pkgutil.cc

index ce945017f360762dbb05ea86af085d59ddbdba69..b4d419bde9a3d04ddf99be010a9c106aeac6d648 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, 0) !=
+               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.