summaryrefslogtreecommitdiff
path: root/src/sysctl
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-09-12 16:57:33 +0200
committerLennart Poettering <lennart@poettering.net>2017-09-13 11:42:31 +0200
commitb50846055ee7e846697ea9f7fcf959bf0bfb8066 (patch)
treef499f446cea7437612a0edbfea1724e259b9c90d /src/sysctl
parent586377fc92189657b41a6b76e5bca3fcaf015a46 (diff)
downloadsystemd-b50846055ee7e846697ea9f7fcf959bf0bfb8066.tar.gz
exec-util,conf-files: skip non-executable files in execute_directories()
Fixes: #6787
Diffstat (limited to 'src/sysctl')
-rw-r--r--src/sysctl/sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c
index 41a6dcbd1b..ce4ff8c8a3 100644
--- a/src/sysctl/sysctl.c
+++ b/src/sysctl/sysctl.c
@@ -280,7 +280,7 @@ int main(int argc, char *argv[]) {
_cleanup_strv_free_ char **files = NULL;
char **f;
- r = conf_files_list_nulstr(&files, ".conf", NULL, conf_file_dirs);
+ r = conf_files_list_nulstr(&files, ".conf", NULL, 0, conf_file_dirs);
if (r < 0) {
log_error_errno(r, "Failed to enumerate sysctl.d files: %m");
goto finish;