Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103559394
D23573.id67964.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1010 B
Referenced Files
None
Subscribers
None
D23573.id67964.diff
View Options
Index: head/contrib/netbsd-tests/lib/libc/c063/t_o_search.c
===================================================================
--- head/contrib/netbsd-tests/lib/libc/c063/t_o_search.c
+++ head/contrib/netbsd-tests/lib/libc/c063/t_o_search.c
@@ -34,6 +34,11 @@
#include <atf-c.h>
#include <sys/types.h>
+#ifdef __FreeBSD__
+#include <sys/mount.h>
+#else
+#include <sys/statvfs.h>
+#endif
#include <sys/stat.h>
#include <dirent.h>
@@ -322,6 +327,23 @@
/* Drop permissions. The kernel must still not check the exec bit. */
ATF_REQUIRE(chmod(DIR, 0000) == 0);
+ {
+ const char *fstypename;
+#ifdef __FreeBSD__
+ struct statfs st;
+
+ fstatfs(dfd, &st);
+ fstypename = st.f_fstypename;
+#else
+ struct statvfs vst;
+
+ fstatvfs(dfd, &vst);
+ fstypename = vst.f_fstypename;
+#endif
+ if (strcmp(fstypename, "nfs") == 0)
+ atf_tc_expect_fail(
+ "NFS protocol cannot observe O_SEARCH semantics");
+ }
ATF_REQUIRE(fstatat(dfd, BASEFILE, &sb, 0) == 0);
ATF_REQUIRE(close(dfd) == 0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 12:36 PM (20 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14885099
Default Alt Text
D23573.id67964.diff (1010 B)
Attached To
Mode
D23573: O_SEARCH test: mark revokex an expected fail on NFS
Attached
Detach File
Event Timeline
Log In to Comment