diff options
author | Karel Zak | 2018-02-01 15:44:25 +0100 |
---|---|---|
committer | Karel Zak | 2018-02-01 15:44:25 +0100 |
commit | fd777151bf71eb8e2238a24e20efa8ce132e74e9 (patch) | |
tree | 1ae3e4645354823e93c6ef4d9c67aac3c2f40ce1 /sys-utils/switch_root.c | |
parent | vipw: use errexec() (diff) | |
download | kernel-qcow2-util-linux-fd777151bf71eb8e2238a24e20efa8ce132e74e9.tar.gz kernel-qcow2-util-linux-fd777151bf71eb8e2238a24e20efa8ce132e74e9.tar.xz kernel-qcow2-util-linux-fd777151bf71eb8e2238a24e20efa8ce132e74e9.zip |
sys-utils: use errexec()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/switch_root.c')
-rw-r--r-- | sys-utils/switch_root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/switch_root.c b/sys-utils/switch_root.c index 87f178c36..3c66d0186 100644 --- a/sys-utils/switch_root.c +++ b/sys-utils/switch_root.c @@ -258,6 +258,6 @@ int main(int argc, char *argv[]) warn(_("cannot access %s"), init); execv(init, initargs); - err(EXIT_FAILURE, _("failed to execute %s"), init); + errexec(init); } |