From cfffedfa8b3799b930f167ff46b94354646b50ce Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Wed, 8 Jul 2009 14:54:40 +0000 Subject: Lua IOlib: don't create files when they don't exist git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21715 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lua/liolib.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'apps/plugins/lua/liolib.c') diff --git a/apps/plugins/lua/liolib.c b/apps/plugins/lua/liolib.c index 76c758e363..0651ca971e 100644 --- a/apps/plugins/lua/liolib.c +++ b/apps/plugins/lua/liolib.c @@ -156,8 +156,6 @@ static int io_open (lua_State *L) { flags = O_WRONLY | O_APPEND; break; } } - if(!rb->file_exists(filename)) - flags |= O_CREAT; *pf = rb->open(filename, flags); return (*pf < 0) ? pushresult(L, 0, filename) : 1; } -- cgit v1.2.3