3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

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

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");