summaryrefslogtreecommitdiff
path: root/src/storage.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2011-10-31 15:31:33 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-11-07 17:40:07 +0100
commit85725fde8a622251053d76b8a64990ae156a49f3 (patch)
tree3454c28ccba106d24032726d11ca26c796c0c7d2 /src/storage.c
parentc6e9ae1507cec3c7f330b64e060a717675d2a793 (diff)
downloadconnman-85725fde8a622251053d76b8a64990ae156a49f3.tar.gz
connman-85725fde8a622251053d76b8a64990ae156a49f3.tar.bz2
connman-85725fde8a622251053d76b8a64990ae156a49f3.zip
storage: Don't list provider settings directories
Diffstat (limited to 'src/storage.c')
-rw-r--r--src/storage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/storage.c b/src/storage.c
index d987f910..8b0db77b 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -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) {