mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 14:55:39 +00:00
fd: Cleanup in dump_one_file
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -495,8 +495,7 @@ static int dump_one_file(pid_t pid, int fd, int lfd, char fd_flags,
|
|||||||
return dump_unsupp_fd(&p);
|
return dump_unsupp_fd(&p);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (S_ISREG(p.stat.st_mode) ||
|
if (S_ISREG(p.stat.st_mode) || S_ISDIR(p.stat.st_mode))
|
||||||
S_ISDIR(p.stat.st_mode))
|
|
||||||
return dump_reg_file(&p, lfd, cr_fdset);
|
return dump_reg_file(&p, lfd, cr_fdset);
|
||||||
|
|
||||||
if (S_ISFIFO(p.stat.st_mode) && (statfs.f_type == PIPEFS_MAGIC))
|
if (S_ISFIFO(p.stat.st_mode) && (statfs.f_type == PIPEFS_MAGIC))
|
||||||
|
Reference in New Issue
Block a user