Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix directory attributes set up
Baptiste Daroussin committed 9 years ago
commit 25ec0204e02e5a7805e5e48e3a25303e5ba31659
parent 98c70cb
1 file changed +1 -1
modified libpkg/pkg_add.c
@@ -351,7 +351,7 @@ do_extract_dir(struct pkg* pkg, struct archive *a __unused, struct archive_entry
	}

	if (st.st_uid == d->uid && st.st_gid == d->gid &&
-
	    (st.st_mode & S_IFMT) == (d->perm & S_IFMT)) {
+
	    (st.st_mode & ~S_IFMT) == (d->perm & ~S_IFMT)) {
		d->noattrs = true;
	}