mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 17:49:13 +00:00
files: Don't unlink ghost directory
It will be rmdir-ed a bit later. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
49f27969f5
commit
9c0c23c067
1 changed files with 3 additions and 1 deletions
|
|
@ -758,7 +758,9 @@ int open_path(struct file_desc *d,
|
|||
}
|
||||
|
||||
if (rfi->remap) {
|
||||
unlink(rfi->path);
|
||||
if (!rfi->remap->is_dir)
|
||||
unlink(rfi->path);
|
||||
|
||||
BUG_ON(!rfi->remap->users);
|
||||
if (--rfi->remap->users == 0) {
|
||||
pr_info("Unlink the ghost %s\n", rfi->remap->path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue