eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 22318ebbd58689f520ff8bd02d6f2f04e012a1a3
parent 3cf0184089cb159e0f7994994d426bef4fbeabce
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date:   Wed,  6 Feb 2019 15:13:32 -0800

main: Ensure existence of the storage dir at startup

Previously, the storage dir has only been created after a successful
network connection, causing removal of Known Network interface from
Dbus and failure to register dir watcher until daemon is restarted.

Diffstat:
Msrc/main.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -45,6 +45,7 @@ #include "src/simauth.h" #include "src/adhoc.h" #include "src/blacklist.h" +#include "src/storage.h" #include "src/backtrace.h" @@ -470,6 +471,11 @@ int main(int argc, char *argv[]) exit_status = EXIT_FAILURE; + if (create_dirs(DAEMON_STORAGEDIR "/")) { + l_error("Failed to create " DAEMON_STORAGEDIR "/"); + goto fail_dbus; + } + dbus = l_dbus_new_default(L_DBUS_SYSTEM_BUS); if (!dbus) { l_error("Failed to initialize D-Bus");