From 8b83b656a507ee767fcb6921985720d1df61101b Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Wed, 8 Sep 2021 10:57:04 -0400 Subject: [PATCH] path_test: Fix the unix socket test The intent was to specify O_PATH to open(2). MFC after: 1 week Sponsored by: The FreeBSD Foundation --- tests/sys/file/path_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/file/path_test.c b/tests/sys/file/path_test.c index 50a77f16736c..0265aa095720 100644 --- a/tests/sys/file/path_test.c +++ b/tests/sys/file/path_test.c @@ -865,7 +865,7 @@ ATF_TC_BODY(path_unix, tc) ATF_REQUIRE_MSG(bind(sd, (struct sockaddr *)&sun, SUN_LEN(&sun)) == 0, FMT_ERR("bind")); - pathfd = open(path, O_RDONLY); + pathfd = open(path, O_PATH); ATF_REQUIRE_ERRNO(EOPNOTSUPP, pathfd < 0); CHECKED_CLOSE(sd);