fstools: guard usage of WEXITSTATUS
authorMichael Heimpold <mhei@heimpold.de>
Sat, 24 Nov 2018 09:22:53 +0000 (10:22 +0100)
committerJohn Crispin <john@phrozen.org>
Mon, 26 Nov 2018 08:45:47 +0000 (09:45 +0100)
commit091aa3d72dcbbfdb4795bb17e260e35a635b0bf5
treec42797109064a3d0f227529c1ac6701d2f4881fc
parent29e53af0b91954ca6a13bdd1f0e67c939ccb8e6d
fstools: guard usage of WEXITSTATUS

According to man page, using WEXITSTATUS should be guarded by a check
of WIFEXITED, so add this check.

While at, also print an error message in case fsck was terminated
by a signal.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
block.c