From 27d97f6fe0cb1d742cfff578e9e5159195f2bd0d Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Sat, 6 Jul 2019 19:21:11 -0600
Subject: [PATCH] Use O_DIRECTORY in unistd/fchdir

---
 tests/unistd/fchdir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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