summaryrefslogtreecommitdiff
path: root/src/sleep
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/sleep
parent0b0f1f6bc9447ad0d8abad941e384868b2932828 (diff)
exec-util,conf-files: skip non-executable files in execute_directories()
Fixes: #6787
Diffstat (limited to 'src/sleep')
-rw-r--r--src/sleep/sleep.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
index 4b402abcd..01fa22349 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -94,7 +94,10 @@ static int execute(char **modes, char **states) {
arg_verb,
NULL
};
- static const char* const dirs[] = {SYSTEM_SLEEP_PATH, NULL};
+ static const char* const dirs[] = {
+ SYSTEM_SLEEP_PATH,
+ NULL
+ };
int r;
_cleanup_fclose_ FILE *f = NULL;