summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/filesystem-app.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/filesystem-app.c')
-rw-r--r--firmware/target/hosted/filesystem-app.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/hosted/filesystem-app.c b/firmware/target/hosted/filesystem-app.c
index f291ece06d..4e2fa8db7b 100644
--- a/firmware/target/hosted/filesystem-app.c
+++ b/firmware/target/hosted/filesystem-app.c
@@ -234,6 +234,7 @@ int app_open(const char *path, int oflag, ...)
234 if (!fpath) 234 if (!fpath)
235 FILE_ERROR_RETURN(ENAMETOOLONG, -1); 235 FILE_ERROR_RETURN(ENAMETOOLONG, -1);
236 236
237 oflag |= O_CLOEXEC;
237 return os_open(fpath, oflag __OPEN_MODE_ARG); 238 return os_open(fpath, oflag __OPEN_MODE_ARG);
238} 239}
239 240