mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-28 08:16:18 -04:00
Lua plugin: fix bad behaviour for io.open(path, 'w')
Author: Christophe Gragnic Patch: FS#10592 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22645 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3fa1684301
commit
8898339fcf
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ static int io_open (lua_State *L) {
|
||||||
case 'r':
|
case 'r':
|
||||||
flags = O_RDONLY; break;
|
flags = O_RDONLY; break;
|
||||||
case 'w':
|
case 'w':
|
||||||
flags = O_WRONLY; break;
|
flags = O_WRONLY | O_TRUNC; break;
|
||||||
case 'a':
|
case 'a':
|
||||||
flags = O_WRONLY | O_APPEND; break;
|
flags = O_WRONLY | O_APPEND; break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue