From owner-freebsd-bugs Fri Mar 7 19:50:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA15097 for bugs-outgoing; Fri, 7 Mar 1997 19:50:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA15077; Fri, 7 Mar 1997 19:50:02 -0800 (PST) Resent-Date: Fri, 7 Mar 1997 19:50:02 -0800 (PST) Resent-Message-Id: <199703080350.TAA15077@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, ortmann@sparc.isl.net 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 ; 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 ; 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 Reply-To: ortmann@sparc.isl.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2915: bug in "find /proc -fstype ufs -print" Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 7 19:50:01 PST 1997 >Last-Modified: >Originator: Daniel Ortmann >Organization: n/a >Release: FreeBSD 3.0-CURRENT i386 >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: >Audit-Trail: >Unformatted: