summaryrefslogtreecommitdiff
path: root/src/basic/conf-files.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-09-12 16:57:33 +0200
committerSven Eden <yamakuzure@gmx.net>2017-09-25 14:37:36 +0200
commit3053a76e3f84eea8e4f0f8245efadda5c4917c1b (patch)
tree5481ecffd2cba2306befaba6b175f0f580ceacd6 /src/basic/conf-files.h
parent0b0f1f6bc9447ad0d8abad941e384868b2932828 (diff)
exec-util,conf-files: skip non-executable files in execute_directories()
Fixes: #6787
Diffstat (limited to 'src/basic/conf-files.h')
-rw-r--r--src/basic/conf-files.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/basic/conf-files.h b/src/basic/conf-files.h
index e00e0e81f..20ecf6e5f 100644
--- a/src/basic/conf-files.h
+++ b/src/basic/conf-files.h
@@ -20,6 +20,10 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-int conf_files_list(char ***ret, const char *suffix, const char *root, const char *dir, ...);
-int conf_files_list_strv(char ***ret, const char *suffix, const char *root, const char* const* dirs);
-int conf_files_list_nulstr(char ***ret, const char *suffix, const char *root, const char *dirs);
+enum {
+ CONF_FILES_EXECUTABLE = 1,
+};
+
+int conf_files_list(char ***ret, const char *suffix, const char *root, unsigned flags, const char *dir, ...);
+int conf_files_list_strv(char ***ret, const char *suffix, const char *root, unsigned flags, const char* const* dirs);
+int conf_files_list_nulstr(char ***ret, const char *suffix, const char *root, unsigned flags, const char *dirs);