From 74df0fca09b3c31ed19e14ba80f996fdff772417 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 6 Nov 2013 03:15:16 +0100 Subject: util: unify reading of /proc/cmdline Instead of individually checking for containers in each user do this once in a new call proc_cmdline() that read the file only if we are not in a container. --- src/backlight/backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backlight') diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index 6c00b00d82..9ec29f79a4 100644 --- a/src/backlight/backlight.c +++ b/src/backlight/backlight.c @@ -291,7 +291,7 @@ int main(int argc, char *argv[]) { * device probing should be complete), so that the validity * check at boot time doesn't have to be reliable. */ - if (streq(argv[1], "load") && restore_state()) { + if (streq(argv[1], "load") && shall_restore_state()) { _cleanup_free_ char *value = NULL; if (!validate_device(udev, device)) -- cgit v1.2.3-54-g00ecf