From: Johannes Schindelin Date: Wed, 26 Oct 2005 17:03:32 GMT Subject: Re: git 565ebbf79f61873042c22a7126d002c104e056f4 broken on OpenBSD Message-ID: 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