Commit 49da2834 authored by Pavel Emelyanov's avatar Pavel Emelyanov

fd: Cleanup in dump_one_file

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9ca95b5d
...@@ -495,8 +495,7 @@ static int dump_one_file(pid_t pid, int fd, int lfd, char fd_flags, ...@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment