VirtualBox

Changeset 86302 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Sep 26, 2020 11:19:38 AM (4 years ago)
Author:
vboxsync
Message:

IPRT/RTFileQuerySize/darwin: Fixed regression from r140046 causing the testcase fail on /dev/null. bugref:9224

File:
1 edited

Legend:

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

    r85875 r86302  
    707707
    708708        /* Always fail block devices.  Character devices doesn't all need to be
    709            /dev/rdisk* nodes, they should return ENOTTY but include EINVAL too. */
    710         if (!S_ISBLK(st.st_mode) && (errno == ENOTTY || errno == EINVAL))
     709           /dev/rdisk* nodes, they should return ENOTTY but /dev/null returns ENODEV
     710           and we include EINVAL just in case. */
     711        if (!S_ISBLK(st.st_mode) && (errno == ENOTTY || errno == ENODEV || errno == EINVAL))
    711712            return VINF_SUCCESS;
    712713
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