VirtualBox

Changeset 78730 in vbox


Ignore:
Timestamp:
May 24, 2019 1:46:38 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130809
Message:

IPRT/RTDirRemove/posix: Translate EEXIST to VERR_DIR_NOT_EMTPY as solaris returns it for non-empty directories and opengroup documents EEXIST and ENOTEMPTY as equivalent. bugref:9172

File:
1 edited

Legend:

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

    r78050 r78730  
    159159        {
    160160            rc = errno;
    161             if (rc != ENOTDIR)
     161            if (rc == EEXIST) /* Solaris returns this, the rest have ENOTDIR. */
     162                rc = VERR_DIR_NOT_EMPTY;
     163            else if (rc != ENOTDIR)
    162164                rc = RTErrConvertFromErrno(rc);
    163165            else
Note: See TracChangeset for help on using the changeset viewer.

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