Unconditionally use basename.c source vs. only doing this if the libc we

are linking against does not have basename().  There is a buffer overflow
bug in lib/libc/gen/basename.c rev 1.1.  There is no way for us to test
what revision of basename() we have in libc, thus this change.

Requested by:	ru
This commit is contained in:
obrien 2001-09-26 20:51:51 +00:00
parent 9eed33b643
commit f047e940b4

View File

@ -10,8 +10,7 @@ SRCS= argv.c choose-temp.c concat.c cp-demangle.c cplus-dem.c \
hex.c floatformat.c lbasename.c objalloc.c obstack.c safe-ctype.c \
xatexit.c xexit.c xmalloc.c \
xstrdup.c xstrerror.c
LIBC_BASENAME!= ar tv /usr/lib/libc.a | grep basename
.if ${LIBC_BASENAME} == ""
.if defined(BOOTSTRAPPING)
SRCS+= basename.c
.endif
CFLAGS+= -DHAVE_CONFIG_H