Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix pkgconf handling
Baptiste Daroussin committed 13 years ago
commit 7b0e2c94303b178794d83868bf6b5fb2f7387a74
parent 1c00624
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) {