summaryrefslogtreecommitdiffstats
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, ...)
if (!fpath)
FILE_ERROR_RETURN(ENAMETOOLONG, -1);
+ oflag |= O_CLOEXEC;
return os_open(fpath, oflag __OPEN_MODE_ARG);
}