summaryrefslogtreecommitdiff
path: root/src/sleep
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/sleep
parent586377fc92189657b41a6b76e5bca3fcaf015a46 (diff)
downloadsystemd-b50846055ee7e846697ea9f7fcf959bf0bfb8066.tar.gz
systemd-b50846055ee7e846697ea9f7fcf959bf0bfb8066.tar.bz2
systemd-b50846055ee7e846697ea9f7fcf959bf0bfb8066.zip
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 3bac78b3e4..4c171a2fe5 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -91,7 +91,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;