main: create .hotspot directory if it does not exist

This commit is contained in:
James Prestwood 2019-06-26 12:20:35 -07:00 committed by Denis Kenzior
parent 537fcd12ca
commit 3d1f1eb21c
1 changed files with 5 additions and 0 deletions

View File

@ -483,6 +483,11 @@ int main(int argc, char *argv[])
goto fail_dbus;
}
if (create_dirs(DAEMON_STORAGEDIR "/.hotspot/")) {
l_error("Failed to create " DAEMON_STORAGEDIR "/.hotspot/");
goto fail_dbus;
}
genl = l_genl_new();
if (!genl) {
l_error("Failed to open generic netlink socket");