backlight: call log_setup_service() before logging
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user