misc/96191: "cat" can display directory contents

Parv parv at pair.com
Mon Apr 24 14:10:22 UTC 2006

The following reply was made to PR misc/96191; it has been noted by GNATS.

From: Parv <parv at pair.com>
To: Bjoern Voigt <bjoern at cs.tu-berlin.de>
Cc: freebsd-gnats-submit at FreeBSD.org
Subject: Re: misc/96191: "cat" can display directory contents
Date: Mon, 24 Apr 2006 10:05:23 -0400

 in message <200604230850.k3N8oWre066807 at www.freebsd.org>,
 wrote Bjoern Voigt thusly...
 > >Description:
 > The FreeBSD's version of "cat" is able to display directory contains:
 > $ cat /etc
 > (garbage)
 > Solaris (tested with SunOS 5.9) shows the same behavior.
 > The behavior on directories in not described in the manual page. 
 > >How-To-Repeat:
 > $ cat /etc
 I personally like this feature.
 BTW, a user can edit the directory entries too, at least in vi
 included w/ FreeBSD.
 > >Fix:
 > "cat" from "coreutils" (GNU Linux) refuses to display directory contents.
 > $ cat /etc
 > cat: /etc: Is a directory
 As a user i oppose the proposed change, regardless of the weight of my
   - Parv

More information about the freebsd-bugs mailing list