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.
This commit is contained in:
parent
3543a2f195
commit
af667503bb
|
@ -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>
|
2001-11-23 John David Anglin <dave@hiauly1.hia.nrc.ca>
|
||||||
|
|
||||||
* binutils/Makefile.am (check-DEJAGNU): Pass CC_FOR_TARGET and
|
* binutils/Makefile.am (check-DEJAGNU): Pass CC_FOR_TARGET and
|
||||||
|
|
|
@ -35,9 +35,6 @@
|
||||||
typedef long time_t;
|
typedef long time_t;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Ought to be defined in libiberty.h... */
|
|
||||||
extern int mkstemps PARAMS ((char *, int));
|
|
||||||
|
|
||||||
/* Error reporting */
|
/* Error reporting */
|
||||||
|
|
||||||
|
@ -236,14 +233,14 @@ make_tempname (filename)
|
||||||
#endif
|
#endif
|
||||||
strcat (tmpname, "/");
|
strcat (tmpname, "/");
|
||||||
strcat (tmpname, template);
|
strcat (tmpname, template);
|
||||||
close (mkstemps (tmpname, 0));
|
mktemp (tmpname);
|
||||||
*slash = c;
|
*slash = c;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tmpname = xmalloc (sizeof (template));
|
tmpname = xmalloc (sizeof (template));
|
||||||
strcpy (tmpname, template);
|
strcpy (tmpname, template);
|
||||||
close (mkstemps (tmpname, 0));
|
mktemp (tmpname);
|
||||||
}
|
}
|
||||||
return tmpname;
|
return tmpname;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue