[net.bugs.4bsd] bug is 4.2 test

ted@usceast.UUCP (Ted Nolan) (05/22/84)

<this is just a test(1)>
Subject: Test(1) doesn't test directories for writeablilty correctly
Index:	/usr/src/bin/test.c 4.2BSD

Description:
	test -w file, where file is a directory doesn't return true if
	the directory is writable.
Repeat-By:
	Procedure to repeat the problem.
$ mkdir foobar
$ chmod 777 foobar
$ if test -w foobar
> then
>       echo yes
> else 
>       echo no
> fi
no

This produces 'yes' on our version 7m system, so at one time in unix history
the command worked properly.

If you are installing S, you should note that the S shell script depends on
this working correctly.

I hope this isn't old hat, I didn't see it on the Mt Xinu buglist.

			Ted Nolan		..usceast!ted
-- 
--------------------------------------------------------------------------------
Ted Nolan		  		usceast!ted
6536 Brookside Circle
Columbia, SC 29206			(feather the rast!)
--------------------------------------------------------------------------------