From: Alex Riesen Date: Mon, 30 Jan 2006 23:16:22 GMT Subject: Re: [PATCH] Set errno to EEXIST if mkdir returns EACCES or EPERM Message-ID: <20060130231622.GB3857@limbo.home> In-Reply-To: <7vvew14frk.fsf@assigned-by-dhcp.cox.net> Junio C Hamano, Mon, Jan 30, 2006 21:33:51 +0100: > and have current callers of mkdir() use it, regardless of the > platform. It may not worth saving mkdir_errno, though. errno may be worth saving. I find the process of finding "why-the-f$%^-did-the-windows-broke-again" really tedious: 1. find the application which failed (grep for the die message) 2. put "%s", strerror(errno) in the die 3. retest 4. find out errno is 0 (success) 5. remove close(fd), munmap, whatever before the die 6. retest 7. repeat > Then everybody but entry.c one would say force=0, and entry.c > one passes force appropriately using the condition it uses in > its current if() statement. I like it :)