From 4bbe0679a857727f9d2d172da88f2bb9b0f34cd3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 22 Jul 1999 16:35:50 -0300 Subject: [PATCH] variables _INPUT and _OUTPUT should be read as rawglobal. --- liolib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liolib.c b/liolib.c index edc0f25e..2adc399b 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 1.40 1999/05/14 12:24:04 roberto Exp roberto $ +** $Id: liolib.c,v 1.41 1999/06/23 13:48:39 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -89,7 +89,7 @@ static int ishandle (lua_Object f) { static FILE *getfilebyname (char *name) { - lua_Object f = lua_getglobal(name); + lua_Object f = lua_rawgetglobal(name); if (!ishandle(f)) luaL_verror("global variable `%.50s' is not a file handle", name); return lua_getuserdata(f);