Subject: Re: read on dirs
To: None <wojtek@wojtek.from.pl>
From: David Brownlee <abs@netbsd.org>
List: netbsd-users
Date: 03/11/2001 13:24:00
Directories can only be written with the appropriate syscalls.
David/absolute -- www.netbsd.org: No hype required --
On Sun, 11 Mar 2001 wojtek@wojtek.from.pl wrote:
>
> could someone explain me the difference between netbsd and linux when
> trying to read directory as file (for example when typing cat <directory>
> by accident).
> linux gives that it's directory not file and refused which i think it's
> normal..
>
> but with netbsd i CAN read directory as file and got binary output from
> cat!
>
> what is it used for and what about security issues? could directory be
> written directly too?!
>
>