about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-05-04 11:09:58 +0000
committerLaurent Bercot <ska@appnovation.com>2024-05-04 11:09:58 +0000
commit14537a064c7ce17e1bf518f23f638f31b711a8ea (patch)
treeebaaf862b382163c8ce2404ba57489e0cbc5e761 /src
parentbf4260c7d8ca2fd8e3151bfbc27d2dd223a7f13a (diff)
downloads6-frontend-14537a064c7ce17e1bf518f23f638f31b711a8ea.tar.gz
s6-frontend-14537a064c7ce17e1bf518f23f638f31b711a8ea.tar.xz
s6-frontend-14537a064c7ce17e1bf518f23f638f31b711a8ea.zip
fchdir doesn't need O_DIRECTORY HEAD master
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/config/s6-frontend-config-preprocess.c2
1 files changed, 1 insertions, 1 deletions
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() ;