On Sat, Oct 06, 2007 at 03:54:06PM -0500, Shawn Bohrer wrote:
The unconditional chdir(..) after the conditional chdir(path) seems like
asking for trouble to me...
What happens in case p == NULL? It simply tries to remove the partial
path?
There is a race condition here of the value of access() changes between
the two calls. Not one likely to trigger but it should be easy to avoid
alltogether.
Gruesse,
--
Frank Lichtenheld <frank@lichtenheld.de>
www: http://www.djpig.de/
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html