Date: Wed, 15 Sep 2021 13:09:41 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 91533b4cd4a8 - stable/13 - path_test: Fix the unix socket test Message-ID: <202109151309.18FD9f4U046076@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=91533b4cd4a8da84b11e926dfa625024a5744183 commit 91533b4cd4a8da84b11e926dfa625024a5744183 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-09-08 14:57:04 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2021-09-15 13:09:18 +0000 path_test: Fix the unix socket test The intent was to specify O_PATH to open(2). Sponsored by: The FreeBSD Foundation (cherry picked from commit 8b83b656a507ee767fcb6921985720d1df61101b) --- 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109151309.18FD9f4U046076>