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:
roam 2001-06-18 06:29:31 +00:00
parent 497731cb88
commit 6574738c5e

View File

@ -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);
}
}
}