eiwd

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

commit 328cb02e4dbe909f6fb15390cfedfafd938f2912
parent 3ab0d8270a52a4a80ecda4a04147e31d72cb94d0
Author: Matt Oberle <matt.r.oberle@gmail.com>
Date:   Mon,  9 Aug 2021 01:27:25 -0400

knownnetworks: stat fallback for unknown d_type

Utilize 'storage_is_file' when readdir returns DT_UNKNOWN to ensure
features like autoconnect work on filesystems that don't return a d_type
(eg. XFS).

Diffstat:
Msrc/knownnetworks.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/knownnetworks.c b/src/knownnetworks.c @@ -1071,8 +1071,13 @@ static int known_networks_init(void) struct l_settings *settings; L_AUTO_FREE_VAR(char *, full_path) = NULL; - if (dirent->d_type != DT_REG && dirent->d_type != DT_LNK) + if (dirent->d_type == DT_UNKNOWN) { + if (!storage_is_file(dirent->d_name)) + continue; + } else if (dirent->d_type != DT_REG && + dirent->d_type != DT_LNK) { continue; + } ssid = storage_network_ssid_from_path(dirent->d_name, &security);