mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 07:04:53 +00:00
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 8b83b656a5
)
This commit is contained in:
parent
6d8f2277de
commit
91533b4cd4
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue