about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-05-04 11:02:40 +0000
committerLaurent Bercot <ska@appnovation.com>2024-05-04 11:02:40 +0000
commite57d75a58a486e797c574a7a8358d161f9a28f76 (patch)
tree010ed936e3b46345d3c654cd28283c27529dd0f0
parent06e90ec5597bcc31dfecbbc71a61095d19abbc9f (diff)
downloadtipidee-e57d75a58a486e797c574a7a8358d161f9a28f76.tar.gz
tipidee-e57d75a58a486e797c574a7a8358d161f9a28f76.tar.xz
tipidee-e57d75a58a486e797c574a7a8358d161f9a28f76.zip
Don't use O_DIRECTORY when not needed (lol Darwin)
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/config/tipidee-config-preprocess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/tipidee-config-preprocess.c b/src/config/tipidee-config-preprocess.c
index 3289eaa..5b79288 100644
--- a/src/config/tipidee-config-preprocess.c
+++ b/src/config/tipidee-config-preprocess.c
@@ -237,7 +237,7 @@ static void includefromhere (char const *file)
         case 1 :
         case 0 :
         {
-          int fdhere = open2(".", O_RDONLY | O_DIRECTORY) ;
+          int fdhere = open2(".", O_RDONLY) ;
           char linefmt[UINT32_FMT] ;
           if (fdhere == -1)
             strerr_dief3sys(111, "in ", namesa.s + d + 1, ": unable to open base directory: ") ;