git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jan 30, 2006, 23:16 UTC
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 :)
Previous: Junio C Hamano
Message 3 of 3 in “Set errno to EEXIST if mkdir returns EACCES or EPERM”
  1. Set errno to EEXIST if mkdir returns EACCES or EPERMAlex Riesen, Jan 30, 2006
  2. Junio C HamanoJan 30, 2006
  3. Alex RiesenJan 30, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.