Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
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 97aaae07aa935c9e8000bd42574b77a8b113b00e
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"))