summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/lua/liolib.c2
1 files changed, 0 insertions, 2 deletions
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) {
156 flags = O_WRONLY | O_APPEND; break; 156 flags = O_WRONLY | O_APPEND; break;
157 } 157 }
158 } 158 }
159 if(!rb->file_exists(filename))
160 flags |= O_CREAT;
161 *pf = rb->open(filename, flags); 159 *pf = rb->open(filename, flags);
162 return (*pf < 0) ? pushresult(L, 0, filename) : 1; 160 return (*pf < 0) ? pushresult(L, 0, filename) : 1;
163} 161}