summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-03-23 13:36:17 +0000
committerwiz <wiz@pkgsrc.org>2001-03-23 13:36:17 +0000
commit1e3fe5aeb3b00db69648416485df485fa1878299 (patch)
tree4ab87d8d7be58a174945d02f3c80c9d63bffb580 /cross
parent69af9f98b4dff865851eb6304290413c0d27c558 (diff)
downloadpkgsrc-1e3fe5aeb3b00db69648416485df485fa1878299.tar.gz
Use mktemp instead of tempnam to create the temporary file; addresses
pkg/10191 by Richard Earnshaw. Patch provided by Dieter Baron. Bump version to 1.1.
Diffstat (limited to 'cross')
-rw-r--r--cross/bfd-crunchide/Makefile4
-rw-r--r--cross/bfd-crunchide/files/crunchide.c9
2 files changed, 7 insertions, 6 deletions
diff --git a/cross/bfd-crunchide/Makefile b/cross/bfd-crunchide/Makefile
index 11533da179c..3b6fe3a5706 100644
--- a/cross/bfd-crunchide/Makefile
+++ b/cross/bfd-crunchide/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2001/02/25 04:17:39 hubertf Exp $
+# $NetBSD: Makefile,v 1.6 2001/03/23 13:36:17 wiz Exp $
-DISTNAME= bfd-crunchide-1.0
+DISTNAME= bfd-crunchide-1.1
CATEGORIES= cross
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/cross/bfd-crunchide/files/crunchide.c b/cross/bfd-crunchide/files/crunchide.c
index 848edc8931b..a7ed3ac66e3 100644
--- a/cross/bfd-crunchide/files/crunchide.c
+++ b/cross/bfd-crunchide/files/crunchide.c
@@ -1,4 +1,4 @@
-/* $NetBSD: crunchide.c,v 1.1.1.1 1999/12/20 05:57:40 sakamoto Exp $ */
+/* $NetBSD: crunchide.c,v 1.2 2001/03/23 13:36:18 wiz Exp $ */
/* NetBSD: crunchide.c,v 1.9 1999/01/11 22:40:00 kleink Exp */
/*
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: crunchide.c,v 1.1.1.1 1999/12/20 05:57:40 sakamoto Exp $");
+__RCSID("$NetBSD: crunchide.c,v 1.2 2001/03/23 13:36:18 wiz Exp $");
#endif
#include <unistd.h>
@@ -233,7 +233,7 @@ hide_syms(filename, bfdname)
{
int i, n, rv = 0;
bfd *org_bfd = NULL, *new_bfd = NULL;
- char *tempname;
+ char tempname[16];
char **name;
long storage_needed, number_of_symbols;
size_t fn_size;
@@ -252,7 +252,8 @@ hide_syms(filename, bfdname)
}
bfdname = bfd_get_target(org_bfd);
- tempname = tempnam(".", NULL);
+ strcpy(tempname, "tmp.XXXXXXX");
+ mktemp(tempname);
if ((new_bfd = bfd_openw(tempname, bfdname)) == NULL) {
bfd_perror(tempname);
goto err;