Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
When retrying to create the temporaryfile, do not try to regenerate the name
Baptiste Daroussin committed 9 years ago
commit a82794d62a1424f4c879035bc3a4d263379b7a19
parent d7a71d0
1 file changed +1 -1
modified libpkg/pkg_add.c
@@ -398,8 +398,8 @@ do_extract_hardlink(struct pkg *pkg, struct archive *a __unused, struct archive_
	}

	strlcpy(f->temppath, path, sizeof(f->temppath));
-
retry:
	pkg_add_file_random_suffix(f->temppath, sizeof(f->temppath), 12);
+
retry:
	if (linkat(pkg->rootfd, RELATIVE_PATH(fh->temppath),
	    pkg->rootfd, RELATIVE_PATH(f->temppath), 0) == -1) {
		if (!tried_mkdir) {