VirtualBox

Changeset 5346 in vbox


Ignore:
Timestamp:
Oct 17, 2007 10:09:18 AM (17 years ago)
Author:
vboxsync
Message:

On solaris ENOSYS doesn't mean what we think it does. mkdir returns it on a NFS mount point for instance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp

    r4071 r5346  
    7575        {
    7676            if (mkdir(pszNativePath, fMode & RTFS_UNIX_MASK))
    77                 rc = RTErrConvertFromErrno(errno);
     77            {
     78#ifdef RT_OS_SOLARIS
     79                if (errno == ENOSYS) /* ENOSYS has a slight different meaning (mkdir on nfs mount point). */
     80                    rc = VERR_ALREADY_EXISTS;
     81                else
     82#endif
     83                    rc = RTErrConvertFromErrno(errno);
     84            }
    7885        }
    7986
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette