Skip to content
Snippets Groups Projects
Verified Commit 27d97f6f authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Use O_DIRECTORY in unistd/fchdir

parent 2c3195d5
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "test_helpers.h" #include "test_helpers.h"
int main(void) { int main(void) {
int fd = open("..", 0, 0); int fd = open("..", O_DIRECTORY);
ERROR_IF(open, fd, == -1); ERROR_IF(open, fd, == -1);
UNEXP_IF(open, fd, < 0); UNEXP_IF(open, fd, < 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment