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 EPERMSomehow 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.