From e10b3ef407fef8eacebf805ae35dcb664c415057 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Thu, 19 Feb 2015 22:18:00 +0300 Subject: [PATCH] mount: Don't ignore validation and shared resolving errors on dump Signed-off-by: Pavel Emelyanov --- mount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mount.c b/mount.c index 8d5ba8a82..11651e4a1 100644 --- a/mount.c +++ b/mount.c @@ -2334,6 +2334,8 @@ int collect_mnt_namespaces(bool for_dump) goto err; if (for_dump && need_to_validate) { + ret = -1; + if (collect_shared(mntinfo)) goto err; if (validate_mounts(mntinfo, true))