Re: git 565ebbf79f61873042c22a7126d002c104e056f4 broken on OpenBSD
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 26, 2005, 17:03 UTC
- Message-ID
- <Pine.LNX.4.63.0510261901140.9686@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20051026165515.GA16616@delft.aura.cs.cmu.edu>
Hi,
On Wed, 26 Oct 2005, Jan Harkes wrote:
> - if (ret == EXDEV && !rename(tmpfile, filename)) > + if (ret && ret != EEXIST && !rename(tmpfile, filename))
We don't need to test for ret, as we're already in a "if (ret)" block. What would happen if ret==EEXIST, and we try to rename() nevertheless? It should fail, too, right?
Ciao, Dscho