2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 22:35:33 +00:00

files: Don't forget on stripping deleted postfix on linked files

Otherwise we gonna accumulated "(deleted)" postfix generated by
kernel on every c/r iteration eventually overflowing PATH_MAX
which will make container undumpable.

Signed-off-by: Cyrill Gorcunov <gorcunov@virtuozzo.com>
This commit is contained in:
Andrey Zhadchenko
2021-01-25 10:21:14 +03:00
committed by Andrei Vagin
parent 3a4bffc143
commit 129cc7fbc4

View File

@@ -1301,9 +1301,11 @@ static int check_path_remap(struct fd_link *link, const struct fd_parms *parms,
* name.
*/
if (errno == ENOENT)
if (errno == ENOENT) {
strip_deleted(link);
return dump_linked_remap(rpath + 1, plen - 1,
ost, lfd, id, nsid);
}
pr_perror("Can't stat path");
return -1;