Date: Fri, 7 Mar 1997 20:16:20 -0600 (CST) From: Daniel Ortmann <ortmann@sparc.isl.net> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/2915: bug in "find /proc -fstype ufs -print" Message-ID: <199703080216.UAA12457@localhost.isl> Resent-Message-ID: <199703080350.TAA15077@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703080216.UAA12457>