forked from len0rd/rockbox
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
This commit is contained in:
parent
50304a3ace
commit
cfffedfa8b
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue