From: Richard M. Stallman Date: Wed, 25 May 1994 04:36:48 +0000 (+0000) Subject: (openp): Don't use O_RDONLY. X-Git-Tag: emacs-19.34~8178 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=92bab0111edffb63bdd5755c58138dca5be8356a;p=emacs.git (openp): Don't use O_RDONLY. --- 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) if (exec_only) fd = (access (fn, X_OK) == 0) ? 1 : -1; else - fd = open (fn, O_RDONLY, 0); + fd = open (fn, 0, 0); if (fd >= 0) {