[CRIU] [PATCH 6/9] mount: Use pre-calculated ct->mountpoint + t_mpnt_l value

Pavel Emelyanov xemul at parallels.com
Tue Nov 11 06:50:41 PST 2014


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 mount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mount.c b/mount.c
index 05444e3..de081af 100644
--- a/mount.c
+++ b/mount.c
@@ -483,7 +483,7 @@ static int validate_shared(struct mount_info *m)
 
 		list_for_each_entry_safe(cm, tmp, &m->children, siblings) {
 			/* B */
-			if (strcmp(ct->mountpoint + t_mpnt_l + len, cm->mountpoint + m_mpnt_l))
+			if (strcmp(ct_mpnt_rpath + len, cm->mountpoint + m_mpnt_l))
 				continue;
 
 			if (!mounts_equal(cm, ct, false)) {
-- 
1.8.4.2




More information about the CRIU mailing list