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
1866adc54f
commit
e6ebeb5f57
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78401
@ -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