diff --git a/tests/unistd/fchdir.c b/tests/unistd/fchdir.c index cae965337627663578e8c8301d6c5b0d13b6debf..9279dbb9342958f28ea3da916703001d98f49a24 100644 --- a/tests/unistd/fchdir.c +++ b/tests/unistd/fchdir.c @@ -6,7 +6,7 @@ #include "test_helpers.h" int main(void) { - int fd = open("..", 0, 0); + int fd = open("..", O_DIRECTORY); ERROR_IF(open, fd, == -1); UNEXP_IF(open, fd, < 0);