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/eject.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/eject.c')
-rw-r--r-- | sys-utils/eject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/eject.c b/sys-utils/eject.c index a38c5c38c..a19ee8901 100644 --- a/sys-utils/eject.c +++ b/sys-utils/eject.c @@ -667,7 +667,7 @@ static void umount_one(const struct eject_control *ctl, const char *name) else execl("/bin/umount", "/bin/umount", name, NULL); - errx(EXIT_FAILURE, _("unable to exec /bin/umount of `%s'"), name); + errexec("/bin/umount"); case -1: warn( _("unable to fork")); |