diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-11-06 03:15:16 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-11-06 03:15:16 +0100 |
commit | 74df0fca09b3c31ed19e14ba80f996fdff772417 (patch) | |
tree | 6910dfb512fa634c8e65a5c938f24d4dc133d716 /src/rfkill | |
parent | nspawn: explicitly terminate machines when we exit nspawn (diff) | |
download | systemd-74df0fca09b3c31ed19e14ba80f996fdff772417.tar.xz systemd-74df0fca09b3c31ed19e14ba80f996fdff772417.zip |
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.
Diffstat (limited to 'src/rfkill')
-rw-r--r-- | src/rfkill/rfkill.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |