backlight: call log_setup_service() before logging

This commit is contained in:
Yu Watanabe
2020-06-30 22:19:21 +09:00
parent 74f1bb5c9f
commit daa227a320
+2 -2
View File
@@ -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);