2001-11-29 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 29 Nov 2001 18:51:21 +0000 (18:51 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 29 Nov 2001 18:51:21 +0000 (18:51 +0000)
* bucomm.c (make_tempname): Revert the changes made on
2001-11-14 and 2001-11-12. They won't work with directories.

binutils/ChangeLog
binutils/bucomm.c

index 18190ea6092ed68651c33f58d19f8d15bafccc41..3bb6ea2f6f0bc060b778bbc8c8447299b4a695a8 100644 (file)
@@ -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
index 68b191b72101a8149208e11fe948020fbd24e1d5..aa3080fa753bd2b623d4eccbc087ff622517f6b5 100644 (file)
@@ -35,9 +35,6 @@
 typedef long time_t;
 #endif
 #endif
-
-/* Ought to be defined in libiberty.h...  */
-extern int mkstemps PARAMS ((char *, int));
 \f
 /* 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;
 }
This page took 0.036477 seconds and 4 git commands to generate.