lua-users home
lua-l archive

Re: Possible bug?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Aug 02, 2004 at 03:13:10PM +0100, David Given wrote:
> I think I've just found a bug in Lua.
> 
> In liolib.c, there's the following code in aux_close():
> 
> int ok = (pclose(f) != -1) || (fclose(f) == 0);
Daniel Silverstone spotted this a week or so ago, and posted about it
here: http://lua-users.org/lists/lua-l/2004-07/msg00430.html
He also suggests a patch to fix it in a way that's POSIX compatible. I
don't think I've spotted any comment from the Lua guys about it. (But I
believe Dan's fix is now in the patches for the Debian package.)
B.
-- 
Rob Kendrick, Pepperfish Ltd. +44 (0)845 226 4146 www.pepperfish.net
PGP signed or encrypted mail welcome Key ID: 3651D17A

AltStyle によって変換されたページ (->オリジナル) /