Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167037984
D7506.id19298.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7506.id19298.diff
View Options
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,6 +111,7 @@
} else
base = basename(NULL);
+#ifdef __NetBSD__
/*
* basename(3) is allowed to modify the input buffer.
* However, that is considered hostile by some programs,
@@ -127,6 +128,7 @@
test_basename_table[i].input);
atf_tc_fail("Input buffer was modified.");
}
+#endif
/* Make sure the result is correct. */
if (strcmp(test_basename_table[i].output, base) != 0) {
@@ -162,6 +164,7 @@
} else
base = dirname(NULL);
+#ifdef __NetBSD__
/*
* dirname(3) is allowed to modify the input buffer.
* However, that is considered hostile by some programs,
@@ -178,6 +181,7 @@
test_dirname_table[i].input);
atf_tc_fail("Input buffer was modified.");
}
+#endif
/* Make sure the result is correct. */
if (strcmp(test_dirname_table[i].output, base) != 0) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 5:06 PM (18 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36948617
Default Alt Text
D7506.id19298.diff (1 KB)
Attached To
Mode
D7506: Remove tests for non-standard behaviour of dirname(3)/basename(3).
Attached
Detach File
Event Timeline
Log In to Comment