diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-04-21 22:51:28 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-04-22 13:41:18 +0200 |
commit | 720220a3c3c42b92734e2a92f9094348451e187b (patch) | |
tree | 0ead2efe5a2ea012c7f9d7945c4c26f1e09fb8e2 /lib/src/svcscan.c | |
parent | 160cd6b6aaffc12fb8cff0e6a9b8e1e0ba7053d0 (diff) |
Add flags to selectively skip fields in service files
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'lib/src/svcscan.c')
-rw-r--r-- | lib/src/svcscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/svcscan.c b/lib/src/svcscan.c index 32c1dee..f4c7ef1 100644 --- a/lib/src/svcscan.c +++ b/lib/src/svcscan.c @@ -27,7 +27,7 @@ #include "service.h" -int svcscan(const char *directory, service_list_t *list) +int svcscan(const char *directory, service_list_t *list, int flags) { int i, dfd, type, ret = 0; struct dirent *ent; @@ -82,7 +82,7 @@ int svcscan(const char *directory, service_list_t *list) if (type != S_IFREG && type != S_IFLNK) continue; - svc = rdsvc(dfd, ent->d_name); + svc = rdsvc(dfd, ent->d_name, flags); if (svc == NULL) { ret = -1; continue; |