aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lread.c b/src/lread.c
index 91469230b7e..fedfcb807c8 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1578,8 +1578,7 @@ openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes,
1578 } 1578 }
1579 else 1579 else
1580 { 1580 {
1581 int oflags = O_RDONLY + (NILP (predicate) ? 0 : O_BINARY); 1581 fd = emacs_open (pfn, O_RDONLY, 0);
1582 fd = emacs_open (pfn, oflags, 0);
1583 if (fd < 0) 1582 if (fd < 0)
1584 { 1583 {
1585 if (errno != ENOENT) 1584 if (errno != ENOENT)