diff options
author | ewt <devnull@localhost> | 1998-03-05 20:48:23 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1998-03-05 20:48:23 +0000 |
commit | ec4c8852138c5abf4236e120ef5d69ec3f1f8e6d (patch) | |
tree | de8d8e1052e461d08358f1d29adeca863b61e44d /install.c | |
parent | f28be6951d0d70ee704243bbb48bbfd32ba28412 (diff) | |
download | librpm-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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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]); |