From 603bfc3c873dfb6517e6819ca79275787046fcba Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 11 Jan 2014 23:38:37 -0600 Subject: [PATCH 1/1] execute_fusermount(): Check status of 'umount' properly Code is only reached if fusermount command does not work. --- src/mount_image.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mount_image.c b/src/mount_image.c index 5829e6aa..d8a94296 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -1526,10 +1526,12 @@ execute_fusermount(const char *dir, bool lazy) "terminate"); return WIMLIB_ERR_FUSERMOUNT; } - if (status != 0) { + + if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { ERROR("`umount' did not successfully complete"); return WIMLIB_ERR_FUSERMOUNT; } + return 0; } -- 2.43.0