fuse: Return EXIT_FAILURE if fuse_main fails.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 9 Dec 2011 15:30:23 +0000 (15:30 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 9 Dec 2011 15:35:50 +0000 (15:35 +0000)
commit8ea8e456dc87e4c26f2ede1b00ab617e5d69b064
treeb03c467f95d8ab0f8bdb22e8d8621a0453972c1a
parent0e5174333ec0d99114cd1d94b5476cc117cca2e1
fuse: Return EXIT_FAILURE if fuse_main fails.

fuse_main can return any non-zero value on error.  In particular on
certain sorts of error such as unsupported -o options it returns 1
(not -1).

Therefore make sure any non-zero return is turned into EXIT_FAILURE.

(Thanks Pádraig Brady)
(cherry picked from commit ae45cee728039d7724fc73e5ffb2550c8054d268)
fuse/guestmount.c