summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-16 20:37:14 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-16 20:37:14 (EST)
commit86eec753b604f7576aca622db7dfe1fb309b01a7 (patch)
treef3b73e4da5a3b4706b30087fa1b01659ce4042c8 /libopkg
parent603bec779ab8f0751bc48b0394aadd261fafdcde (diff)
Use the same tmp dir pattern as in opkg_update_cmd().
git-svn-id: http://opkg.googlecode.com/svn/trunk@321 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/opkg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libopkg/opkg.c b/libopkg/opkg.c
index aea87fc..437beb1 100644
--- a/libopkg/opkg.c
+++ b/libopkg/opkg.c
@@ -766,10 +766,8 @@ opkg_update_package_lists (opkg_t *opkg, opkg_progress_callback_t progress_callb
}
}
- tmp = xstrdup("/tmp/opkg.XXXXXX");
-
- if (mkdtemp (tmp) == NULL)
- {
+ sprintf_alloc(&tmp, "%s/update-XXXXXX", opkg->conf->tmp_dir);
+ if (mkdtemp (tmp) == NULL) {
/* XXX: Error: could not create temporary file name */
free (lists_dir);
free (tmp);