3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

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.
This commit is contained in:
James Prestwood 2019-09-09 14:09:31 -07:00 committed by Denis Kenzior
parent 6902bb9dae
commit 29a05eb402

View File

@ -188,7 +188,7 @@ bool storage_create_dirs(void)
} }
storage_path = l_strdup(state_dirs[0]); 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); l_strv_free(state_dirs);
if (create_dirs(storage_path)) { if (create_dirs(storage_path)) {