Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2006 08:50:32 GMT
From:      Bjoern Voigt <bjoern@cs.tu-berlin.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/96191: "cat" can display directory contents
Message-ID:  <200604230850.k3N8oWre066807@www.freebsd.org>
Resent-Message-ID: <200604230900.k3N90UuA037081@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         96191
>Category:       misc
>Synopsis:       "cat" can display directory contents
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 23 09:00:29 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Bjoern Voigt
>Release:        6.1-PRERELEASE
>Organization:
>Environment:
FreeBSD my.host.name 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Mon Mar 27 18:26:36 CEST 2006     root@chemnitz.dialup.cs.tu-berlin.de:/usr/src/sys/GENERIC.my  i386


>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
>Fix:
"cat" from "coreutils" (GNU Linux) refuses to display directory contents.

$ cat /etc
cat: /etc: Is a directory


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604230850.k3N8oWre066807>