From 262a399beb9c525633d5ac96d15754faeb65a28c Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sat, 18 Apr 2020 23:50:52 -0400 Subject: spm_mkdtemp requires a base directory: * test_spm_mkdtemp revealed a difference in how variables are stored (Linux vs. MacOS) --- lib/install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/install.c') diff --git a/lib/install.c b/lib/install.c index e0592db..c6e12ca 100644 --- a/lib/install.c +++ b/lib/install.c @@ -180,7 +180,7 @@ int spm_do_install(SPM_Hierarchy *fs, ManifestList *mf, StrList *packages) { size_t num_requirements = 0; ManifestPackage **requirements = NULL; char source[PATH_MAX]; - char *tmpdir = spm_mkdtemp("spm_destroot", NULL); + char *tmpdir = spm_mkdtemp(TMP_DIR, "spm_destroot", NULL); if (tmpdir == NULL) { perror("Could not create temporary destination root"); -- cgit