Page MenuHomeFreeBSD

D23573.id67964.diff
No OneTemporary

D23573.id67964.diff

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

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)

Event Timeline