diff options
author | H.J. Lu <hjl@lucon.org> | 2001-11-29 18:51:21 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2001-11-29 18:51:21 +0000 |
commit | f4d9dd524249a271f13a3e2370d01ccb5e755a18 (patch) | |
tree | 564d34b7ff4223e1c9de4b3907ceca5c456d4833 | |
parent | e3bb02921aeb8c5ab5bf8ccb81b379eb2b45721a (diff) | |
download | binutils-redhat-f4d9dd524249a271f13a3e2370d01ccb5e755a18.tar.gz |
2001-11-29 H.J. Lu <hjl@gnu.org>
* bucomm.c (make_tempname): Revert the changes made on
2001-11-14 and 2001-11-12. They won't work with directories.
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/bucomm.c | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 18190ea609..3bb6ea2f6f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2001-11-29 H.J. Lu <hjl@gnu.org> + + * 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 <dave@hiauly1.hia.nrc.ca> * binutils/Makefile.am (check-DEJAGNU): Pass CC_FOR_TARGET and diff --git a/binutils/bucomm.c b/binutils/bucomm.c index 68b191b721..aa3080fa75 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; } |