changeset 7589:b6993af7a905

Only lusers assume that O_RDONLY == 0.
author Michael I. Bushnell <mib@gnu.org>
date Fri, 20 May 1994 16:17:20 +0000
parents 4a0b3a63e51e
children e70581cde056
files src/lread.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lread.c	Fri May 20 08:46:20 1994 +0000
+++ b/src/lread.c	Fri May 20 16:17:20 1994 +0000
@@ -1,5 +1,5 @@
 /* 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 @@
 	      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)
 		{