Index: contrib/netbsd-tests/lib/libc/gen/t_basedirname.c =================================================================== --- contrib/netbsd-tests/lib/libc/gen/t_basedirname.c +++ contrib/netbsd-tests/lib/libc/gen/t_basedirname.c @@ -111,23 +111,6 @@ } else base = basename(NULL); - /* - * basename(3) is allowed to modify the input buffer. - * However, that is considered hostile by some programs, - * and so we elect to consider this an error. - * - * This is not a problem, as basename(3) is also allowed - * to return a pointer to a statically-allocated buffer - * (it is explicitly not required to be reentrant). - */ - if (test_basename_table[i].input != NULL && - strcmp(test_basename_table[i].input, testbuf) != 0) { - fprintf(stderr, - "Input buffer for \"%s\" was modified\n", - test_basename_table[i].input); - atf_tc_fail("Input buffer was modified."); - } - /* Make sure the result is correct. */ if (strcmp(test_basename_table[i].output, base) != 0) { fprintf(stderr, @@ -162,23 +145,6 @@ } else base = dirname(NULL); - /* - * dirname(3) is allowed to modify the input buffer. - * However, that is considered hostile by some programs, - * and so we elect to consider this an error. - * - * This is not a problem, as dirname(3) is also allowed - * to return a pointer to a statically-allocated buffer - * (it is explicitly not required to be reentrant). - */ - if (test_dirname_table[i].input != NULL && - strcmp(test_dirname_table[i].input, testbuf) != 0) { - fprintf(stderr, - "Input buffer for \"%s\" was modified\n", - test_dirname_table[i].input); - atf_tc_fail("Input buffer was modified."); - } - /* Make sure the result is correct. */ if (strcmp(test_dirname_table[i].output, base) != 0) { fprintf(stderr,