commit 29a05eb40288c3fe865015d033fbb0c2e713244b
parent 6902bb9dae787aa6d6556cc5b5cd6ec47ffc4d24
Author: James Prestwood <prestwoj@gmail.com>
Date: Mon, 9 Sep 2019 14:09:31 -0700
storage: fix hotspot dir creation
create_dirs was dependent on the path ending in '/' to create the
full path. The hotspot code did not include a '/' at the end so
it was not getting created, which prevented the hotspot module
from initializing.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/storage.c b/src/storage.c
@@ -188,7 +188,7 @@ bool storage_create_dirs(void)
}
storage_path = l_strdup(state_dirs[0]);
- storage_hotspot_path = l_strdup_printf("%s/hotspot", state_dirs[0]);
+ storage_hotspot_path = l_strdup_printf("%s/hotspot/", state_dirs[0]);
l_strv_free(state_dirs);
if (create_dirs(storage_path)) {