mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +00:00
Don't let ATF call basename() and dirname() in a non-standard way.
POSIX basename() and dirname() are allowed to overwrite the input buffer. The advantage of implementing it that way is that the functions can be thread-safe, as they don't store the result in a global buffer. It looks like ATF wants to call basename() and dirname() in the non-standard way where the argument is of type "const char *". This change disables the calls to basename() and dirname(), which only seems to affect the formatting of some rare debug/error messages. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D6627
This commit is contained in:
parent
4913f849ab
commit
2c7da872aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301696
@ -2,10 +2,10 @@
|
||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to 1 if basename takes a constant pointer */
|
||||
#define HAVE_CONST_BASENAME 1
|
||||
/* #undef HAVE_CONST_BASENAME */
|
||||
|
||||
/* Define to 1 if dirname takes a constant pointer */
|
||||
#define HAVE_CONST_DIRNAME 1
|
||||
/* #undef HAVE_CONST_DIRNAME */
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
Loading…
Reference in New Issue
Block a user