diff --git a/tests/unistd/fchdir.c b/tests/unistd/fchdir.c index cae9653376..9279dbb934 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);