diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2020-04-18 23:54:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-18 23:54:54 -0400 |
commit | 59f7d29e2d707373ba1153337dca3279a2e3acc5 (patch) | |
tree | ffb98ee034d8f3a08366041ea2bd596c0c15986f /lib/install.c | |
parent | e0af560cabe6343e38061884c8361daddb5c7545 (diff) | |
parent | 262a399beb9c525633d5ac96d15754faeb65a28c (diff) | |
download | spmc-59f7d29e2d707373ba1153337dca3279a2e3acc5.tar.gz |
Merge pull request #26 from jhunkeler/fix_spm_mkdtemp
spm_mkdtemp requires a base directory:
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"); |