Re: [9fans] test -w on directory

2012-05-25 Thread Charles Forsyth
> > >kb=4096 > > say what!? fittingly, it's unused. > > i'd suppose it was probably going to reduce the buffer size on a wirelessly-connected ipaq

Re: [9fans] test -w on directory

2012-05-24 Thread erik quanstrom
> some rc scripts seem to assume that test -w should work on > directories. examples are /rc/bin/lp which tests for /tmp > being writable. another is /rc/bin/juke that tests on > /mnt/juke. in both cases, the test returning the wrong result won't easily be noticed. lp just mounts somthing else on

[9fans] test -w on directory

2012-05-24 Thread cinap_lenrek
yesterday. anth_x discovered that test -w on directory always returns false even tho the directory is writable. test works by calling access(AWRITE) on the file which tries a open(OWRITE) on the directory. this always fails because you can't open directory for writing. some rc scripts seem to ass