aboutsummaryrefslogtreecommitdiff
path: root/cmd/service
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-21 22:51:28 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-22 13:41:18 +0200
commit720220a3c3c42b92734e2a92f9094348451e187b (patch)
tree0ead2efe5a2ea012c7f9d7945c4c26f1e09fb8e2 /cmd/service
parent160cd6b6aaffc12fb8cff0e6a9b8e1e0ba7053d0 (diff)
Add flags to selectively skip fields in service files
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'cmd/service')
-rw-r--r--cmd/service/dumpscript.c2
-rw-r--r--cmd/service/list.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/service/dumpscript.c b/cmd/service/dumpscript.c
index 880631f..eaff509 100644
--- a/cmd/service/dumpscript.c
+++ b/cmd/service/dumpscript.c
@@ -49,7 +49,7 @@ static service_t *try_load(const char *directory, const char *filename)
if (type != S_IFREG && type != S_IFLNK)
return NULL;
- svc = rdsvc(dirfd, filename);
+ svc = rdsvc(dirfd, filename, 0);
close(dirfd);
return svc;
}
diff --git a/cmd/service/list.c b/cmd/service/list.c
index b9e342a..ad4cf00 100644
--- a/cmd/service/list.c
+++ b/cmd/service/list.c
@@ -63,7 +63,7 @@ static int cmd_list(int argc, char **argv)
if (check_arguments(argv[0], argc, 1, 2))
return EXIT_FAILURE;
- if (svcscan(SVCDIR, &list)) {
+ if (svcscan(SVCDIR, &list, 0)) {
fprintf(stderr, "Error while reading services from %s\n",
SVCDIR);
ret = EXIT_FAILURE;