On Sat, Nov 01, 2003 at 10:05:42PM -0800, Michael G Schwern wrote:
> > the directory's contents happened to have a true value at the end? will 
> > require be sucessful? Shouldn't it test that the file it's going to read is 
> > actually a file?
> 
> There was just a big umm, thread on this earlier, but I don't think it
> was noticed that require() effected.  Yeah, it probably should check that
> its a file.

I'd rather that it checked it was not a directory (S_IFDIR, and not
a block special device: S_IFBLK).

People can do funky things with named pipes and sockets and char
devices. We shouldn't be stopping them.

Tim.

Reply via email to