Re: [PATCH] Make git-clean a builtin

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frank Lichtenheld
Date: Saturday, October 6, 2007 - 2:52 pm

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Make git-clean a builtin, Shawn Bohrer, (Sat Oct 6, 1:54 pm)
Re: [PATCH] Make git-clean a builtin, Frank Lichtenheld, (Sat Oct 6, 2:52 pm)
Re: [PATCH] Make git-clean a builtin, Shawn Bohrer, (Sat Oct 6, 6:13 pm)
Re: [PATCH] Make git-clean a builtin, Jeff King, (Sun Oct 7, 7:04 pm)
Re: [PATCH] Make git-clean a builtin, Jeff King, (Sun Oct 7, 7:08 pm)
Re: [PATCH] Make git-clean a builtin, Linus Torvalds, (Sun Oct 7, 7:17 pm)
Re: [PATCH] Make git-clean a builtin, Jeff King, (Sun Oct 7, 7:22 pm)
Re: [PATCH] Make git-clean a builtin, Johannes Sixt, (Sun Oct 7, 11:37 pm)
Re: [PATCH] Make git-clean a builtin, Linus Torvalds, (Mon Oct 8, 11:27 am)