summaryrefslogtreecommitdiff
path: root/firmware/common/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/dir.c')
-rw-r--r--firmware/common/dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c
index 59f7bd747a..f89129ae34 100644
--- a/firmware/common/dir.c
+++ b/firmware/common/dir.c
@@ -311,7 +311,8 @@ int mkdir(const char *path)
311 311
312 struct filestr_base stream; 312 struct filestr_base stream;
313 struct path_component_info compinfo; 313 struct path_component_info compinfo;
314 rc = open_stream_internal(path, FF_DIR, &stream, &compinfo); 314 rc = open_stream_internal(path, FF_DIR | FF_PARENTINFO, &stream,
315 &compinfo);
315 if (rc < 0) 316 if (rc < 0)
316 { 317 {
317 DEBUGF("Can't open parent dir or path is not a directory\n"); 318 DEBUGF("Can't open parent dir or path is not a directory\n");