mount: missing 'return false' if the mount fails
authorRobert Swiecki <robert@swiecki.net>
Thu, 19 Oct 2017 13:46:31 +0000 (15:46 +0200)
committerRobert Swiecki <robert@swiecki.net>
Thu, 19 Oct 2017 13:46:31 +0000 (15:46 +0200)
mount.c

diff --git a/mount.c b/mount.c
index 2537c58..64e6573 100644 (file)
--- a/mount.c
+++ b/mount.c
@@ -207,6 +207,7 @@ static bool mountMount(struct mounts_t* mpt, const char* newroot, const char* tm
                        PLOG_W("mount('%s') src:'%s' dst:'%s' failed", mountDescribeMountPt(mpt),
                            srcpath, dst);
                }
+               return false;
        } else {
                mpt->mounted = true;
        }