Commit 3bf2d6d9 authored by Pavel Emelyanov's avatar Pavel Emelyanov

files: Fix link vs target names when creating file remaps

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3172b0bd
......@@ -598,8 +598,8 @@ int open_path(struct file_desc *d,
if (rfi->remap) {
mutex_lock(ghost_file_mutex);
if (link(rfi->remap->path, rfi->path) < 0) {
pr_perror("Can't link %s -> %s",
rfi->remap->path, rfi->path);
pr_perror("Can't link %s -> %s", rfi->path,
rfi->remap->path);
return -1;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment