Commit 73aa9704 authored by Michael I. Bushnell's avatar Michael I. Bushnell

Only lusers assume that O_RDONLY == 0.

parent 3b0aebe9
/* Lisp parsing and input streams.
Copyright (C) 1985, 1986, 1987, 1988, 1989,
Copyright (C) 1985, 1986, 1987, 1988, 1989,
1993, 1994 Free Software Foundation, Inc.
This file is part of GNU Emacs.
......@@ -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, 0, 0);
fd = open (fn, O_RDONLY, 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