Teach fstat(1) about FIFO's - it's OK to display them as regular files.
While I'm here, fix two second-level indents to be four spaces. Reviewed by: dd, -audit
This commit is contained in:
parent
497731cb88
commit
6574738c5e
@ -363,13 +363,20 @@ dofiles(kp)
|
||||
else if (file.f_type == DTYPE_PIPE) {
|
||||
if (checkfile == 0)
|
||||
pipetrans((struct pipe *)file.f_data, i,
|
||||
file.f_flag);
|
||||
file.f_flag);
|
||||
}
|
||||
#endif
|
||||
#ifdef DTYPE_FIFO
|
||||
else if (file.f_type == DTYPE_FIFO) {
|
||||
if (checkfile == 0)
|
||||
vtrans((struct vnode *)file.f_data, i,
|
||||
file.f_flag);
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
dprintf(stderr,
|
||||
"unknown file type %d for file %d of pid %d\n",
|
||||
file.f_type, i, Pid);
|
||||
"unknown file type %d for file %d of pid %d\n",
|
||||
file.f_type, i, Pid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user