Subject: bin/193: ls'ing an unreadable directory doesn't give an error
To: None <gnats-admin>
From: None <Mark_Weaver@brown.edu>
List: netbsd-bugs
Date: 03/31/1994 21:05:04
>Number: 193
>Category: bin
>Synopsis: ls'ing an unreadable directory doesn't give an error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 31 21:05:03 1994
>Originator: Mark Weaver
>Organization:
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu | Brown University
PGP Key: finger mhw@cs.brown.edu | Dept of Computer Science
>Release: current-940330
>Environment:
System: NetBSD cis-ts3-slip4.cis.brown.edu 0.9a EXCELSIOR#0 i386
>Description:
ls'ing an unreadable directory doesn't give an error.
Nothing is printed to stdout or stderr, and a 0 result
code is returned.
>How-To-Repeat:
mhw ~ % mkdir tst
mhw ~ % chmod 111 tst
mhw ~ % ls -lgd tst
d--x--x--x 2 mhw users 512 Mar 31 23:55 tst/
mhw ~ % ls tst
mhw ~ % echo $?
0
mhw ~ %
>Fix:
Unknown.
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------