From ortmann@localhost.isl  Fri Mar  7 19:46:58 1997
Received: from who.cdrom.com (who.cdrom.com [204.216.27.3])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA14336
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 7 Mar 1997 19:46:51 -0800 (PST)
Received: from localhost.isl (ppp-55.infopet.com [208.210.103.55])
          by who.cdrom.com (8.8.5/8.6.11) with ESMTP id SAA02369
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 7 Mar 1997 18:19:50 -0800 (PST)
Received: (from ortmann@localhost) by localhost.isl (8.8.5/8.7.3) id UAA12457; Fri, 7 Mar 1997 20:16:20 -0600 (CST)
Message-Id: <199703080216.UAA12457@localhost.isl>
Date: Fri, 7 Mar 1997 20:16:20 -0600 (CST)
From: Daniel Ortmann <ortmann@sparc.isl.net>
Reply-To: ortmann@sparc.isl.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: bug in "find /proc -fstype ufs -print"
X-Send-Pr-Version: 3.2

>Number:         2915
>Category:       bin
>Synopsis:       the "-fstype ufs" option of "find" seems to fail on procfs
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar  7 19:50:01 PST 1997
>Closed-Date:    Wed Jul 29 05:13:43 PDT 1998
>Last-Modified:  Wed Jul 29 05:15:02 PDT 1998
>Originator:     Daniel Ortmann
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
n/a
>Environment:

mounted filesystem: procfs on /proc (local)

>Description:

When the "find" command is run on a "procfs" filesystem, error
messages such as these are output:

find /proc -fstype ufs -print
/proc/12403/file
find: /proc/12403/mem: Bad file descriptor

When the "-fstype ufs" options is removed the error messages disappear:

find /proc -print
/proc
/proc/curproc
/proc/12422
/proc/12422/file
/proc/12422/mem
/proc/12422/regs
/proc/12422/fpregs
/proc/12422/ctl
/proc/12422/status
/proc/12422/note
/proc/12422/notepg
/proc/12422/map
/proc/12422/etype

As a control test, the "-fstype ufs" option works correctly on /tmp:

find /tmp -fstype ufs -print
/tmp
/tmp/.X11-unix
/tmp/.X11-unix/X0
/tmp/.X0-lock
/tmp/p12263
/tmp/pf12263

>How-To-Repeat:

mount the proc filesystem on /proc
find /proc -fstype ufs -print  # produces error messages
find /proc -print              # produces no error messages
find /tmp  -fstype ufs -print  # produces no error messages

>Fix:

>Release-Note:
>Audit-Trail:

From: Jacques Vidrine <n@nectar.com>
To: freebsd-gnats-submit@freebsd.org, ortmann@sparc.isl.net
Cc:  Subject: Re: bin/2915: the "-fstype ufs" option of "find" seems to fail on procfs
Date: Mon, 27 Jul 1998 15:51:32 -0500

 I believe this was fixed with:
 
 find/Makefile         1.2
 find/find.1           1.7
 find/find.c           1.4
 find/function.c       1.12
 find/main.c           1.4
 -- 
 Jacques Vidrine <n@nectar.com>
State-Changed-From-To: open->closed 
State-Changed-By: thepish 
State-Changed-When: Wed Jul 29 05:13:43 PDT 1998 
State-Changed-Why:  
Fixed with Merge from Lite2 (1997/03/11) in Current 
>Unformatted:
