| Summary: | [PATCH] fstat does not recognize FIFO's | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Peter Pentchev <roam> | ||||
| Component: | bin | Assignee: | Peter Pentchev <roam> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Unspecified | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
Responsible Changed From-To: freebsd-bugs->roam Originator's MFC reminder. State Changed From-To: open->closed Committed to -current 5 weeks ago, MFC'd now. |
/usr/bin/fstat does not recognize DTYPE_FIFO, and either ignores such fd's, or, if invoked with '-v', complains about unknown file types. Fix: Against -current, applies with a negligible offset to -stable.. How-To-Repeat: Plain vanilla 4.3-RC /usr/bin/fstat.. [root@ringworld:v0]# fstat -v 2>&1 | awk '($7=="6" && $10=="368") {print}' unknown file type 4 for file 6 of pid 368 After applying the attached patch.. [root@ringworld:v0]# ./fstat -v 2>&1 | awk '($3=="368") && ($4=="6") {print}' root supervise 368 6 /usr 583875 prw------- 0 r