Bug #2527
closedmkdir needs also to check for ENOSYS on Solaris
Description
In mod_compress from lighttpd 1.4.33 the mkdir needs to also check for errno to be ENOSYS on Solaris. This happens when a directory is tried to be created in an auto_home-style directory. This attached patch fixes the issue, taken from
http://sourceforge.net/apps/trac/gar/browser/csw/mgar/pkg/lighttpd/trunk/files/0003-Ignore-ENOSYS-on-mkdir-which-happens-on-automounted-.patch
Files
Updated by dago about 11 years ago
The issue was also raised earlier in the forum at http://redmine.lighttpd.net/boards/2/topics/4163
Updated by stbuehler about 11 years ago
- Status changed from New to Invalid
Looks like a platform bug to me.
http://www.unix.com/man-page/opensolaris/2/mkdir/ doesn't event document ENOSYS (neither does http://pubs.opengroup.org/onlinepubs/009695399/functions/mkdir.html).
I'm not going to accept ENOSYS as EEXIST.
In case you want to maintain a workaround I suggest adding at least a stat() to check whether it really exists; but I'm not going to maintain such workaround in the upstream code.
Also available in: Atom