VirtualBox

Changeset 27289 in vbox


Ignore:
Timestamp:
Mar 11, 2010 4:38:18 PM (15 years ago)
Author:
vboxsync
Message:

fileio-posix.cpp: Fixed inverted test on RTFILE_O_INHERIT causing the flag to have the reverse effect.

File:
1 edited

Legend:

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

    r26761 r27289  
    225225         * Mark the file handle close on exec, unless inherit is specified.
    226226         */
    227         if (    (fOpen & RTFILE_O_INHERIT)
     227        if (    !(fOpen & RTFILE_O_INHERIT)
    228228#ifdef O_NOINHERIT
    229229            &&  !(fOpenMode & O_NOINHERIT)  /* Take care since it might be a zero value dummy. */
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