Bug 26637

Summary: [PATCH] fstat does not recognize FIFO's
Product: Base System Reporter: Peter Pentchev <roam>
Component: binAssignee: Peter Pentchev <roam>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Peter Pentchev 2001-04-17 08:50:01 UTC
/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
Comment 1 dd freebsd_committer freebsd_triage 2001-06-19 02:24:53 UTC
Responsible Changed
From-To: freebsd-bugs->roam

Originator's MFC reminder.
Comment 2 Peter Pentchev freebsd_committer freebsd_triage 2001-07-23 08:24:03 UTC
State Changed
From-To: open->closed

Committed to -current 5 weeks ago, MFC'd now.