Commit 92bab011 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(openp): Don't use O_RDONLY.

parent 73dc8771
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment