summaryrefslogtreecommitdiff
path: root/install.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1998-03-05 20:48:23 +0000
committerewt <devnull@localhost>1998-03-05 20:48:23 +0000
commitec4c8852138c5abf4236e120ef5d69ec3f1f8e6d (patch)
treede8d8e1052e461d08358f1d29adeca863b61e44d /install.c
parentf28be6951d0d70ee704243bbb48bbfd32ba28412 (diff)
downloadlibrpm-tizen-ec4c8852138c5abf4236e120ef5d69ec3f1f8e6d.tar.gz
librpm-tizen-ec4c8852138c5abf4236e120ef5d69ec3f1f8e6d.tar.bz2
librpm-tizen-ec4c8852138c5abf4236e120ef5d69ec3f1f8e6d.zip
ftp files to RPMVAR_TMPPATH, not /var/tmp
CVS patchset: 2033 CVS date: 1998/03/05 20:48:23
Diffstat (limited to 'install.c')
-rw-r--r--install.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/install.c b/install.c
index 6f2f6e158..eb402e0f0 100644
--- a/install.c
+++ b/install.c
@@ -165,9 +165,10 @@ int doInstall(char * rootdir, char ** argv, int installFlags,
if (rpmIsVerbose()) {
printf(_("Retrieving %s\n"), *filename);
}
- packages[i] = alloca(strlen(*filename) + 30 + strlen(rootdir));
- sprintf(packages[i], "%s/var/tmp/rpm-ftp-%d-%d.tmp", rootdir,
- tmpnum++, (int) getpid());
+ packages[i] = alloca(strlen(*filename) + 30 + strlen(rootdir) +
+ strlen(rpmGetVar(RPMVAR_TMPPATH)));
+ sprintf(packages[i], "%s%s/tmp/rpm-ftp-%d-%d.tmp", rootdir,
+ rpmGetVar(RPMVAR_TMPPATH), tmpnum++, (int) getpid());
rpmMessage(RPMMESS_DEBUG,
"getting %s as %s\n", *filename, packages[i]);
fd = urlGetFile(*filename, packages[i]);