storage.c: Search for settings file even if d_type is DT_UNKNOWN.
authorAndrei Gherzan <andrei@gherzan.ro>
Mon, 6 Aug 2012 20:54:33 +0000 (23:54 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 7 Aug 2012 06:23:59 +0000 (09:23 +0300)
This is useful for filesystems where d_type is always DT_UNKNOWN,
for example in reiserfs.

src/storage.c

index 20766a3..29291dc 100644 (file)
@@ -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.