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/rfkill/rfkill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rfkill') diff --git a/src/rfkill/rfkill.c b/src/rfkill/rfkill.c index d5b6f27b8d..65fd9bc478 100644 --- a/src/rfkill/rfkill.c +++ b/src/rfkill/rfkill.c @@ -95,7 +95,7 @@ int main(int argc, char *argv[]) { return EXIT_FAILURE; } - if (streq(argv[1], "load") && restore_state()) { + if (streq(argv[1], "load") && shall_restore_state()) { _cleanup_free_ char *value = NULL; r = read_one_line_file(saved, &value); -- cgit v1.2.3-54-g00ecf