summaryrefslogtreecommitdiffstats
path: root/src/backlight
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-06-30 12:29:42 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-06-30 15:19:21 +0200
commitdaa227a3201e5d443c670e9d585188684be73a1d (patch)
treeb42ae37e04c9144d912e54d566c96c1084e1fe4d /src/backlight
parentbacklight: use SYNTHETIC_ERRNO() macro (diff)
downloadsystemd-daa227a3201e5d443c670e9d585188684be73a1d.tar.xz
systemd-daa227a3201e5d443c670e9d585188684be73a1d.zip
backlight: call log_setup_service() before logging
Diffstat (limited to 'src/backlight')
-rw-r--r--src/backlight/backlight.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
index bb6773e837..355483a714 100644
--- a/src/backlight/backlight.c
+++ b/src/backlight/backlight.c
@@ -304,11 +304,11 @@ static int run(int argc, char *argv[]) {
unsigned max_brightness;
int r;
+ log_setup_service();
+
if (argc != 3)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "This program requires two arguments.");
- log_setup_service();
-
umask(0022);
r = mkdir_p("/var/lib/systemd/backlight", 0755);