Re: git 565ebbf79f61873042c22a7126d002c104e056f4 broken on OpenBSD
- From
Junio C Hamano <junkio@cox.net>
- Date
- Oct 26, 2005, 20:08 UTC
- Message-ID
- <7vr7a8ca8j.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <86mzkwdsef.fsf@blue.stonehenge.com>
merlyn@stonehenge.com (Randal L. Schwartz) writes:
> It's cleaner to test for the ones that work, building up an OR'ed expression.
You are right. In this case the only thing we care about is if it failed because of EEXIST, so checking that and trying to fall back on rename() otherwise seems cleanest, as Linus and others suggests.
I swallowed Linus version. Thanks for reporting (and also ctype fix the other day).