procmail
[Top] [All Lists]

Re: detecting failure to chdir() to $MAILDIR

1997-05-15 11:37:00
On Thu, 15 May 1997 10:54:20 +0300 (EET DST), era eriksson 
<reriksso(_at_)cc(_dot_)helsinki(_dot_)fi> said:

Well, you can test for the mere existence of the directory and see if
you have execute permission on it. It should mean the same thing, [...]

For practical purposes it will mean the same thing, but it's a bad habit
to get in to.  The race condition inherent in test-then-use is probably
the second most common security culprit on today's Internet.  It's a
habit that none of us can afford to have.

-- 
Roderick Schertler
roderick(_at_)argon(_dot_)org

<Prev in Thread] Current Thread [Next in Thread>