summaryrefslogtreecommitdiffstats
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)
struct filestr_base stream;
struct path_component_info compinfo;
- rc = open_stream_internal(path, FF_DIR, &stream, &compinfo);
+ rc = open_stream_internal(path, FF_DIR | FF_PARENTINFO, &stream,
+ &compinfo);
if (rc < 0)
{
DEBUGF("Can't open parent dir or path is not a directory\n");