Re: [PATCH] Make git-clean a builtin

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Shawn Bohrer <shawn.bohrer@...>
Cc: <git@...>, <gitster@...>
Date: Saturday, October 6, 2007 - 5: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, 4:54 pm)
Re: [PATCH] Make git-clean a builtin, Jeff King, (Sun Oct 7, 10:04 pm)
Re: [PATCH] Make git-clean a builtin, Linus Torvalds, (Sun Oct 7, 10:17 pm)
Re: [PATCH] Make git-clean a builtin, Jeff King, (Sun Oct 7, 10:22 pm)
Re: [PATCH] Make git-clean a builtin, Johannes Sixt, (Mon Oct 8, 2:37 am)
Re: [PATCH] Make git-clean a builtin, Linus Torvalds, (Mon Oct 8, 2:27 pm)
Re: [PATCH] Make git-clean a builtin, Jeff King, (Sun Oct 7, 10:08 pm)
Re: [PATCH] Make git-clean a builtin, Frank Lichtenheld, (Sat Oct 6, 5:52 pm)
Re: [PATCH] Make git-clean a builtin, Shawn Bohrer, (Sat Oct 6, 9:13 pm)