diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-02-08 20:29:50 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-02-11 20:37:16 +0100 |
commit | c31c4324c5120d9b38f8a5e39623c8242ee001e0 (patch) | |
tree | e173042a535ba7e5a15cee4301a18a8ce5770669 /src | |
parent | 418761f5864fe1ae7e9bb884259cc9933ae8ad0c (diff) |
systemctl: don't update the reboot parameter if none is given
Otherwise systemd-reboot.service will remove the parameter that was set
before. This was broken in commit "b986229efe2cc96157aa14c37bab7843311bbef1
systemctl: bugfix for systemctl reboot command with argument"
Diffstat (limited to 'src')
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 2d70ff1de6..7b81a9c985 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -2993,7 +2993,7 @@ static int start_special(sd_bus *bus, char **args) { return -EPERM; } - if (a == ACTION_REBOOT) { + if (a == ACTION_REBOOT && args[1]) { r = update_reboot_param_file(args[1]); if (r < 0) return r; |