mount: restorecon: guard against execl() errors
authorDaniel Golle <daniel@makrotopia.org>
Fri, 16 Oct 2020 02:24:17 +0000 (03:24 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 12 Dec 2020 23:02:56 +0000 (23:02 +0000)
commit48625308a375a3d3e08446661491a8dd1fbf172d
tree24f7dbbf8f3d61a95e892927803bcc8c176c7889
parent0c6fb90e8c6e255e2b5da2c840fe534c7bc8cd7a
mount: restorecon: guard against execl() errors

In the current implementation, in case of execl("/sbin/restorecon")
failing, the child process will also return and that will lead to
even more disasterous effects.
Though it seems unlikely that execl() would fail given that the file
exists, simply catch that case by exiting in case execl() returns.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libfstools/mount.c