Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add missing argument to openat
Baptiste Daroussin committed 7 years ago
commit a29ecdc0226d894c392305e0a311d25e4ee9204b
parent 6ac0f01
1 file changed +1 -1
modified libpkg/pkg_repo_create.c
@@ -555,7 +555,7 @@ pkg_create_repo(char *path, const char *output_dir, bool filelist,
			goto cleanup;
		}
	}
-
	if ((fd = openat(outputdir_fd, meta->digests, O_CREAT|O_TRUNC|O_RDWR)) == -1) {
+
	if ((fd = openat(outputdir_fd, meta->digests, O_CREAT|O_TRUNC|O_RDWR, 00644)) == -1) {
		goto cleanup;
	}
	if ((mandigests = fdopen(fd, "w")) == NULL) {