Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix pkgconf handling
Baptiste Daroussin committed 13 years ago
commit 7b0e2c94303b178794d83868bf6b5fb2f7387a74
parent 1c0062426d01335fc758beb6765727e01f15ba64
1 file changed +1 -1
modified libpkg/pkg_add.c
@@ -79,7 +79,7 @@ do_extract(struct archive *a, struct archive_entry *ae)
		 * conf1.cfg.pkgconf
		 */
		if (is_conf_file(pathname, path, sizeof(path))
-
		    && lstat(path, &st) == ENOENT) {
+
		    && lstat(path, &st) == -1 && errno == ENOENT) {
			archive_entry_set_pathname(ae, path);
			ret = archive_read_extract(a,ae, EXTRACT_ARCHIVE_FLAGS);
			if (ret != ARCHIVE_OK) {