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:
Peter Pentchev 2001-06-18 06:29:31 +00:00
parent 1866adc54f
commit e6ebeb5f57
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78401

View file

@ -363,13 +363,20 @@ dofiles(kp)
else if (file.f_type == DTYPE_PIPE) { else if (file.f_type == DTYPE_PIPE) {
if (checkfile == 0) if (checkfile == 0)
pipetrans((struct pipe *)file.f_data, i, 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 #endif
else { else {
dprintf(stderr, dprintf(stderr,
"unknown file type %d for file %d of pid %d\n", "unknown file type %d for file %d of pid %d\n",
file.f_type, i, Pid); file.f_type, i, Pid);
} }
} }
} }