diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/lua/liolib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/liolib.c b/apps/plugins/lua/liolib.c index 08aed42388..eea40c0d02 100644 --- a/apps/plugins/lua/liolib.c +++ b/apps/plugins/lua/liolib.c | |||
@@ -151,7 +151,7 @@ static int io_open (lua_State *L) { | |||
151 | case 'r': | 151 | case 'r': |
152 | flags = O_RDONLY; break; | 152 | flags = O_RDONLY; break; |
153 | case 'w': | 153 | case 'w': |
154 | flags = O_WRONLY; break; | 154 | flags = O_WRONLY | O_TRUNC; break; |
155 | case 'a': | 155 | case 'a': |
156 | flags = O_WRONLY | O_APPEND; break; | 156 | flags = O_WRONLY | O_APPEND; break; |
157 | } | 157 | } |