From 3d1f1eb21c7be39e925e142a53fa318ba779fd66 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 26 Jun 2019 12:20:35 -0700 Subject: [PATCH] main: create .hotspot directory if it does not exist --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.c b/src/main.c index bff99779..4cd2adce 100644 --- a/src/main.c +++ b/src/main.c @@ -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");