bug is 4.2 test(1) command
Ted Nolan
ted at usceast.UUCP
Tue May 22 15:26:06 AEST 1984
<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!)
--------------------------------------------------------------------------------
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list