2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 05:18:00 +00:00

fd: Cleanup in dump_one_file

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2012-06-03 19:58:19 +04:00
parent 9ca95b5d3a
commit 49da2834a5

View File

@ -495,8 +495,7 @@ static int dump_one_file(pid_t pid, int fd, int lfd, char fd_flags,
return dump_unsupp_fd(&p);
}
if (S_ISREG(p.stat.st_mode) ||
S_ISDIR(p.stat.st_mode))
if (S_ISREG(p.stat.st_mode) || S_ISDIR(p.stat.st_mode))
return dump_reg_file(&p, lfd, cr_fdset);
if (S_ISFIFO(p.stat.st_mode) && (statfs.f_type == PIPEFS_MAGIC))