VirtualBox

Changeset 21672 in vbox


Ignore:
Timestamp:
Jul 17, 2009 12:07:16 PM (16 years ago)
Author:
vboxsync
Message:

RTDirCreate: recent nevadas (111b at least) returns EACCES when mkdir(szNfsMountPoint), causing RTDirCreateFullPath to bust again.

File:
1 edited

Legend:

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

    r20111 r21672  
    8989            if (mkdir(pszNativePath, fMode & RTFS_UNIX_MASK))
    9090            {
     91                rc = errno;
    9192#ifdef RT_OS_SOLARIS
    92                 if (errno == ENOSYS) /* ENOSYS has a slight different meaning (mkdir on nfs mount point). */
    93                     rc = VERR_ALREADY_EXISTS;
    94                 else
    95 #endif
    96                     rc = RTErrConvertFromErrno(errno);
     93                /*
     94                 * mkdir on nfs mount points has been/is busted in various
     95                 * during the Nevada development cycle. We've observed:
     96                 *  - Build 111b (2009.06) returns EACCES.
     97                 *  - Build ca. 70-80 returns ENOSYS.
     98                 */
     99                if (    rc == ENOSYS
     100                    ||  rc == EACCES)
     101                {
     102                    struct stat st;
     103                    if (!stat(pszNativePath, &st))
     104                        rc = EEXIST;
     105                }
     106#endif
     107                rc = RTErrConvertFromErrno(rc);
    97108            }
    98109        }
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