[CRIU] [PATCH] mount: fix error print in case of failed bind-mount

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Thu Oct 6 03:46:22 PDT 2016


This is minor issue, but would be nice to have print in sync with actual
action.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
 criu/mount.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/mount.c b/criu/mount.c
index b1a2692..1e1e8ef 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -1902,7 +1902,7 @@ static int do_bind_mount(struct mount_info *mi)
 		/* Get a copy of mi->bind without child mounts */
 		if (mount(mnt_path, mnt_clean_path, NULL, MS_BIND, NULL)) {
 			pr_perror("Unable to bind-mount %s to %s",
-					mi->bind->mountpoint, mnt_clean_path);
+					mnt_path, mnt_clean_path);
 			return -1;
 		}
 		mnt_path = mnt_clean_path;



More information about the CRIU mailing list