aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-25 04:36:48 +0000
committerRichard M. Stallman1994-05-25 04:36:48 +0000
commit92bab0111edffb63bdd5755c58138dca5be8356a (patch)
tree67535ee4ab1a144b20dc197c753e65d992df2505
parent73dc87711090d6b60b9c003b1be91c6b8b8efc3f (diff)
downloademacs-92bab0111edffb63bdd5755c58138dca5be8356a.tar.gz
emacs-92bab0111edffb63bdd5755c58138dca5be8356a.zip
(openp): Don't use O_RDONLY.
-rw-r--r--src/lread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c
index babeaa28682..dc82b66dce8 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -562,7 +562,7 @@ openp (path, str, suffix, storeptr, exec_only)
562 if (exec_only) 562 if (exec_only)
563 fd = (access (fn, X_OK) == 0) ? 1 : -1; 563 fd = (access (fn, X_OK) == 0) ? 1 : -1;
564 else 564 else
565 fd = open (fn, O_RDONLY, 0); 565 fd = open (fn, 0, 0);
566 566
567 if (fd >= 0) 567 if (fd >= 0)
568 { 568 {