Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Reapply modes to the directories to work around a problem on FreeBSD 9
Baptiste Daroussin committed 11 years ago
commit 240c04aab2786851507924271af278ef7714834d
parent 5cd7fa9
1 file changed +4 -0
modified libpkg/pkg_add.c
@@ -246,6 +246,10 @@ do_extract(struct archive *a, struct archive_entry *ae, const char *location,
				goto cleanup;
			}
		}
+
		/* Reapply modes to the directories to work around a problem on FreeBSD 9 */
+
		if (archive_entry_filetype(ae) == AE_IFDIR)
+
			chmod(pathname, aest->st_mode);
+

		pkg_emit_progress_tick(cur_file++, nfiles);

		/* Rename old file */