Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Return an error if trying to extract a file that does not belong to the manifest
Baptiste Daroussin committed 10 years ago
commit fea9e8a7d6982de4ed0d44db4f1b78a825876d35
parent fc6956d
1 file changed +1 -0
modified libpkg/pkg_add.c
@@ -318,6 +318,7 @@ do_extract_regfile(struct pkg *pkg, struct archive *a, struct archive_entry *ae,
	f = pkg_get_file(pkg, path);
	if (f == NULL) {
		pkg_emit_error("File %s not specified in the manifest");
+
		return (EPKG_FATAL);
	}

	if (!mkdirat_p(pkg->rootfd, bsd_dirname(path)))