Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Try to create the tmp directory if it doesn't exists that helps bootstrapping base from pkgng
Baptiste Daroussin committed 12 years ago
commit 3a6c2da1f963a430f4aa8c330ef789aad8cea61c
parent 3a12507
1 file changed +1 -0
modified libpkg/update.c
@@ -80,6 +80,7 @@ repo_fetch_remote_tmp(struct pkg_repo *repo, const char *filename, const char *e
	tmpdir = getenv("TMPDIR");
	if (tmpdir == NULL)
		tmpdir = "/tmp";
+
	mkdirs(tmpdir);
	snprintf(tmp, MAXPATHLEN, "%s/%s.%s.XXXXXX", tmpdir, filename, extension);

	fd = mkstemp(tmp);