From 14537a064c7ce17e1bf518f23f638f31b711a8ea Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 4 May 2024 11:09:58 +0000 Subject: fchdir doesn't need O_DIRECTORY Signed-off-by: Laurent Bercot --- src/config/s6-frontend-config-preprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/s6-frontend-config-preprocess.c b/src/config/s6-frontend-config-preprocess.c index d66eb7a..038b83a 100644 --- a/src/config/s6-frontend-config-preprocess.c +++ b/src/config/s6-frontend-config-preprocess.c @@ -208,7 +208,7 @@ static int includefromhere (char const *file, int once) } if (what & 0x0080) { - int fdhere = open2(".", O_RDONLY | O_DIRECTORY) ; + int fdhere = open2(".", O_RDONLY) ; if (fdhere < 0) strerr_dief3sys(111, "in ", sa.s + sabase, ": unable to open base directory: ") ; if (!stralloc_0(&localsa)) dienomem() ; -- cgit 1.4.1