Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do not restore flags from the package if the used libarchive is 2.8.x it does not handle st_flags
Baptiste Daroussin committed 11 years ago
commit e990c5d933c69f6cc762bf9ed316ba2d6085fe33
parent 97aaae0
1 file changed +4 -1
modified libpkg/pkg_add.c
@@ -287,9 +287,12 @@ do_extract(struct archive *a, struct archive_entry *ae, const char *location,
				goto cleanup;
			}
#ifdef HAVE_CHFLAGS
-
			/* Restore flags on the final file */
+
			/* Restore flags on the final file exept on libarchive pre 3.x*/
+
#if ARCHIVE_VERSION_NUMBER >= 3000002
			chflags(pathname, aest->st_flags);
#endif
+

+
#endif
		}

		if (string_end_with(pathname, ".pkgnew"))