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:
committed by
Andrei Vagin
parent
3a4bffc143
commit
129cc7fbc4
@@ -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;
|
||||
|
Reference in New Issue
Block a user