On Sun, Jun 15, 2008 at 11:39:38AM +0200, Sander van Dijk wrote:
> On 6/14/08, James Turner <james_AT_bsdgroup.org> wrote:
> > Doesn't it make more sense to do a test, then just redirect error
> > output?
>
> Then you'd have to test more than your patch does: right now, your
> patch only tests if we're dealing with a directory; whether or not the
> user running the script has permission to cd into that directory is
> not taken in consideration. I agree with the others here that the cd
> itself is the safest test.
Thanks for the info guys. I see your point, I suppose cd is the best
test.
-- James Turner BSD Group Consulting http://www.bsdgroup.orgReceived on Sun Jun 15 2008 - 16:41:01 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:49:46 UTC