From: Yu Watanabe Date: Tue, 30 Jun 2020 10:29:42 +0000 (+0900) Subject: backlight: call log_setup_service() before logging X-Git-Tag: v246-rc1~61^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=daa227a3201e5d443c670e9d585188684be73a1d;p=thirdparty%2Fsystemd.git backlight: call log_setup_service() before logging --- diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index bb6773e837b..355483a714f 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);