Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Skip @config files when checking the file checksums
Baptiste Daroussin committed 4 years ago
commit 062752302affc6aa067621f80112346f4c14e515
parent 3f255d6
1 file changed +3 -1
modified libpkg/pkg.c
@@ -1315,7 +1315,9 @@ pkg_test_filesum(struct pkg *pkg)
	assert(pkg != NULL);

	while (pkg_files(pkg, &f) == EPKG_OK) {
-
		if (f->sum != NULL) {
+
		if (f->sum != NULL &&
+
		    /* skip config files as they can be modified */
+
		    pkghash_get_value(pkg->config_files_hash, f->path) == NULL) {
			ret = pkg_checksum_validate_file(f->path, f->sum);
			if (ret != 0) {
				if (ret == ENOENT)