chiark / gitweb /
systemctl: support auditd.service better
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 7 Feb 2015 16:35:37 +0000 (11:35 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Feb 2015 04:38:31 +0000 (23:38 -0500)
commit8527b07be1c5211b50a1a6496585952857a25c73
tree1d22d5a2d267ac1377e8c2741f12150541a0f12c
parentd028e01814a405e83c400c60545785d35dba2a17
systemctl: support auditd.service better

We would print the filename header before trying to open the file. But since
the header was printed to stdout, and the error to stderr, the error would appear
on the terminal before the header. It is cleaner to open the file first, then
and only then print the header.

Also exit on first error. We shouldn't report success if we were unable to open
a file.
src/systemctl/systemctl.c