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"
This commit is contained in:
Michael Olbrich
2015-02-11 20:37:16 +01:00
committed by Lennart Poettering
parent 418761f586
commit c31c4324c5
+1 -1
View File
@@ -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;