]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: avoid spurious warning about missing reboot-param file 6060/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 31 May 2017 03:14:31 +0000 (23:14 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 31 May 2017 03:41:31 +0000 (23:41 -0400)
commit19fbf49cdec0e12fa0ee13d6ff6f858ea0f27479
tree3f58d21d086ab32141ca12bff86cde908c3e0257
parent5e354b22520bbb02e5079672a6f97fe05f185d63
systemctl: avoid spurious warning about missing reboot-param file

$ reboot -f
Failed to read reboot parameter file: No such file or directory

It seems that the warning on ENOENT was inadvertently introduced in
27c06cb516c3b87c34f2a1c2c227152997d05c8c.

The warning reported in #5646 comes from systemctl, but let's fix the other
call site in the same way too.

Fixes #5646.
src/core/shutdown.c
src/systemctl/systemctl.c