Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH] Set errno to EEXIST if mkdir returns EACCES or EPERM

From: Alex Riesen <hidden>
Date: 2016-06-15 22:42:17

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 :)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help