Hi Matt,
On 8/9/21 12:27 AM, Matt Oberle wrote:
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).
---
src/knownnetworks.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
All applied. I did make a minor amend for style reasons:
diff --git a/src/knownnetworks.c b/src/knownnetworks.c
index 85648ead..5c3f432a 100644
--- a/src/knownnetworks.c
+++ b/src/knownnetworks.c
@@ -1071,8 +1071,12 @@ 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) {
Broke up this line into two so it fits on 80 char columns. Similar amend in
patch 3.
continue;
+ }
ssid = storage_network_ssid_from_path(dirent->d_name,
&security);
Thanks!
Regards,
-Denis