chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: introduce -r switch to show units running in local containers in addition...
[elogind.git]
/
src
/
rfkill
/
rfkill.c
diff --git
a/src/rfkill/rfkill.c
b/src/rfkill/rfkill.c
index b814e5c5fc5d287c44dcb36ff6d25fb042c48278..c7c659292abefb0fb0ece120bbf70878fe4dd47d 100644
(file)
--- a/
src/rfkill/rfkill.c
+++ b/
src/rfkill/rfkill.c
@@
-24,7
+24,6
@@
#include "fileio.h"
#include "libudev.h"
#include "udev-util.h"
#include "fileio.h"
#include "libudev.h"
#include "udev-util.h"
-#include "utils.h"
int main(int argc, char *argv[]) {
_cleanup_udev_unref_ struct udev *udev = NULL;
int main(int argc, char *argv[]) {
_cleanup_udev_unref_ struct udev *udev = NULL;
@@
-96,9
+95,12
@@
int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
- if (streq(argv[1], "load")
&& restore_state()
) {
+ if (streq(argv[1], "load")) {
_cleanup_free_ char *value = NULL;
_cleanup_free_ char *value = NULL;
+ if (!shall_restore_state())
+ return EXIT_SUCCESS;
+
r = read_one_line_file(saved, &value);
if (r < 0) {
r = read_one_line_file(saved, &value);
if (r < 0) {