X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemctl%2Fsystemctl.c;h=7b81a9c985923021d9d13d09326a388eeb14c863;hb=c31c4324c5120d9b38f8a5e39623c8242ee001e0;hp=2d70ff1de69e603c9262049a3e29baf710e153f7;hpb=dab2bce81ed3e97d059d56e66f560aa25d9c2d63;p=elogind.git diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 2d70ff1de..7b81a9c98 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;