diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-04-18 23:50:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-04-18 23:50:52 -0400 |
commit | 262a399beb9c525633d5ac96d15754faeb65a28c (patch) | |
tree | ffb98ee034d8f3a08366041ea2bd596c0c15986f /lib/install.c | |
parent | e0af560cabe6343e38061884c8361daddb5c7545 (diff) | |
download | spmc-262a399beb9c525633d5ac96d15754faeb65a28c.tar.gz |
spm_mkdtemp requires a base directory:
* test_spm_mkdtemp revealed a difference in how variables are stored (Linux vs. MacOS)
Diffstat (limited to 'lib/install.c')
-rw-r--r-- | lib/install.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |