This is useful for filesystems where d_type is always DT_UNKNOWN.
For example: reiserfs
---
 src/storage.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/storage.c b/src/storage.c
index 47bd0cb..bcdfe17 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -193,6 +193,7 @@ gchar **connman_storage_get_services()
 
                switch (d->d_type) {
                case DT_DIR:
+               case DT_UNKNOWN:
                        /*
                         * If the settings file is not found, then
                         * assume this directory is not a services dir.
-- 
1.7.9.5

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to