storage: Don't list provider settings directories
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 31 Oct 2011 13:31:33 +0000 (15:31 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 7 Nov 2011 16:40:07 +0000 (17:40 +0100)
src/storage.c

index d987f91..8b0db77 100644 (file)
@@ -204,7 +204,8 @@ gchar **connman_storage_get_services()
 
        while ((d = readdir(dir))) {
                if (strcmp(d->d_name, ".") == 0 ||
-                               strcmp(d->d_name, "..") == 0)
+                               strcmp(d->d_name, "..") == 0 ||
+                               strncmp(d->d_name, "provider_", 9) == 0)
                        continue;
 
                switch (d->d_type) {