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

Re: [RFC & PATCH] Solaris 8: ENOSYS when mkdir applied to automount.

From
Junio C Hamano <junkio@cox.net>
Date
Feb 2, 2006, 00:46 UTC
Message-ID
<7vwtge37w5.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<24768.1138840762@lotus.CS.Berkeley.EDU>
Jason Riedy <ejr@EECS.Berkeley.EDU> writes:
Show 8 quoted lines
> I guess our home directories recently were changed from symlinks
> to autmounts.  Solaris 8's mkdir(2) returns ENOSYS when applied
> to these, breaking safe_create_leading_directories.  I don't
> know if ENOSYS is available everywhere, or if this odd behavior
> is appropriate everywhere.
>
> This works for me, but should I wrap mkdir for bizarre behavior
> by adding a compat/gitmkdir.c?

There was a similar patch for working around Cygwin that threw different errno in an earlier thread:

    From: Alex Riesen <raa.lkml@gmail.com>
    Subject: [PATCH] Set errno to EEXIST if mkdir returns EACCES or EPERM

Somehow I started to trust your ability to code portably a lot better than I trust myself, so please first disregard the suggestion I gave in that thread and give me your honest opinion on what the right fix/workaround would be.

Previous: Jason RiedyNext: Jason Riedy
Message 2 of 4 in “Solaris 8: ENOSYS when mkdir applied to automount.”
  1. Solaris 8: ENOSYS when mkdir applied to automount.Jason Riedy, Feb 2, 2006
  2. Junio C HamanoFeb 2, 2006
  3. Jason RiedyFeb 2, 2006
  4. H. Peter AnvinFeb 2, 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.