[CRIU] [PATCH] files-reg: fixup order in message at link error path

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Tue Dec 11 10:11:25 MSK 2018


Error messages in linkat_hard and open_path about link errors contradict
each other, fix the wrong one.

Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 criu/files-reg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/criu/files-reg.c b/criu/files-reg.c
index a20589b56..725d7be63 100644
--- a/criu/files-reg.c
+++ b/criu/files-reg.c
@@ -1660,8 +1660,8 @@ int open_path(struct file_desc *d,
 			static char tmp_path[PATH_MAX];
 
 			if (errno != EEXIST) {
-				pr_perror("Can't link %s -> %s", rfi->path,
-						rfi->remap->rpath);
+				pr_perror("Can't link %s -> %s",
+					  rfi->remap->rpath, rfi->path);
 				return -1;
 			}
 
-- 
2.17.1



More information about the CRIU mailing list