summaryrefslogtreecommitdiff
path: root/lib/signature.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-08-20 16:28:40 +0000
committerewt <devnull@localhost>1996-08-20 16:28:40 +0000
commit4ed78096b767334b11d28f85de8beb4b32bc271d (patch)
tree699ac91face1429bea18409cc6a3341eee58a770 /lib/signature.c
parent226c40250a8095f152db5145a05f029b69b5c195 (diff)
downloadrpm-4ed78096b767334b11d28f85de8beb4b32bc271d.tar.gz
rpm-4ed78096b767334b11d28f85de8beb4b32bc271d.tar.bz2
rpm-4ed78096b767334b11d28f85de8beb4b32bc271d.zip
uses RPMVAR_TMPPATH
CVS patchset: 976 CVS date: 1996/08/20 16:28:40
Diffstat (limited to 'lib/signature.c')
-rw-r--r--lib/signature.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/signature.c b/lib/signature.c
index 29451424c..34c09c631 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -7,6 +7,7 @@
* size key you like). We also honor PGPPATH finally.
*/
+#include <paths.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
@@ -346,7 +347,7 @@ static int verifyPGPSignature(char *datafile, void *sig,
int res = RPMSIG_OK;
/* Write out the signature */
- sigfile = tempnam("/var/tmp", "rpmsig");
+ sigfile = tempnam(getVar(RPMVAR_TMPPATH), "rpmsig");
sfd = open(sigfile, O_WRONLY|O_CREAT|O_TRUNC, 0644);
write(sfd, sig, count);
close(sfd);