From: H.J. Lu Date: Thu, 29 Nov 2001 18:51:21 +0000 (+0000) Subject: 2001-11-29 H.J. Lu X-Git-Tag: cygnus_cvs_20020108_pre~466 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af667503bbcea170ccc0c5d98894ea9edb074567;p=external%2Fbinutils.git 2001-11-29 H.J. Lu * bucomm.c (make_tempname): Revert the changes made on 2001-11-14 and 2001-11-12. They won't work with directories. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 18190ea..3bb6ea2 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2001-11-29 H.J. Lu + + * bucomm.c (make_tempname): Revert the changes made on + 2001-11-14 and 2001-11-12. They won't work with directories. + 2001-11-23 John David Anglin * binutils/Makefile.am (check-DEJAGNU): Pass CC_FOR_TARGET and diff --git a/binutils/bucomm.c b/binutils/bucomm.c index 68b191b..aa3080f 100644 --- a/binutils/bucomm.c +++ b/binutils/bucomm.c @@ -35,9 +35,6 @@ typedef long time_t; #endif #endif - -/* Ought to be defined in libiberty.h... */ -extern int mkstemps PARAMS ((char *, int)); /* Error reporting */ @@ -236,14 +233,14 @@ make_tempname (filename) #endif strcat (tmpname, "/"); strcat (tmpname, template); - close (mkstemps (tmpname, 0)); + mktemp (tmpname); *slash = c; } else { tmpname = xmalloc (sizeof (template)); strcpy (tmpname, template); - close (mkstemps (tmpname, 0)); + mktemp (tmpname); } return tmpname; }