summaryrefslogtreecommitdiff
path: root/lib/signature.c
diff options
context:
space:
mode:
authorroot <devnull@localhost>1996-03-29 01:26:20 +0000
committerroot <devnull@localhost>1996-03-29 01:26:20 +0000
commitd4a59f62c7def30a70c966bf4f860a159ece4287 (patch)
treec918168b304459a4f4360b08ebff6f9874f6cd29 /lib/signature.c
parent1bd9ff15cc40281a2137336f2ef195f48dda5164 (diff)
downloadrpm-d4a59f62c7def30a70c966bf4f860a159ece4287.tar.gz
rpm-d4a59f62c7def30a70c966bf4f860a159ece4287.tar.bz2
rpm-d4a59f62c7def30a70c966bf4f860a159ece4287.zip
use /var/tmp
CVS patchset: 492 CVS date: 1996/03/29 01:26:20
Diffstat (limited to 'lib/signature.c')
-rw-r--r--lib/signature.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/signature.c b/lib/signature.c
index b73b1b63e..eb87e8def 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -239,13 +239,13 @@ static int verifyPGPSignature(int fd, void *sig, char *result)
FILE *file;
/* Write out the signature */
- sigfile = tempnam("/usr/tmp", "rpmsig");
+ sigfile = tempnam("/var/tmp", "rpmsig");
sfd = open(sigfile, O_WRONLY|O_CREAT|O_TRUNC, 0644);
write(sfd, sig, 152);
close(sfd);
/* Write out the data */
- datafile = tempnam("/usr/tmp", "rpmsig");
+ datafile = tempnam("/var/tmp", "rpmsig");
sfd = open(datafile, O_WRONLY|O_CREAT|O_TRUNC, 0644);
while((count = read(fd, buf, 8192)) > 0) {
write(sfd, buf, count);