From 7373cf518f4d4c47f49693690c2ab8ec29bb8510 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 18 Jan 2017 04:39:35 -0500 Subject: Restore dircache hookup in the database ramcache. Do a few other changes to dircache and file code flags to accomodate its demands. Change-Id: I4742a54e8cfbe4d8b9cffb75faaf920dd907cf8a --- firmware/common/dir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware/common/dir.c') 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"); -- cgit v1.2.3