diff options
author | Gleb Popov <6yearold@gmail.com> | 2025-07-24 10:43:40 +0300 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-08-04 20:04:41 +0200 |
commit | db74ec7441dcdd444ce2599ae196025bc5383bc3 (patch) | |
tree | b4db1add69d8a1a8cedde28d745f6654a4ea6e4e /lib | |
parent | 7e2dc4abbe1333eeefe80f6efbb81df24fe297a0 (diff) | |
download | libfuse-db74ec7441dcdd444ce2599ae196025bc5383bc3.tar.gz |
mount_bsd.c: Actually report mount failures back to caller
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mount_bsd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mount_bsd.c b/lib/mount_bsd.c index 5dba593..c12ab32 100644 --- a/lib/mount_bsd.c +++ b/lib/mount_bsd.c @@ -215,7 +215,9 @@ mount: } waitpid(pid, &status, 0); - _exit(EXIT_SUCCESS); + if (!WIFEXITED(status)) + _exit(EXIT_FAILURE); + _exit(WEXITSTATUS(status)); } if (waitpid(cpid, &status, 0) == -1 || WEXITSTATUS(status) != 0) { |