VirtualBox

Changeset 83536 in vbox for trunk/src


Ignore:
Timestamp:
Apr 3, 2020 4:01:48 PM (5 years ago)
Author:
vboxsync
Message:

Guest Control/VBoxService: Strip truncation bit in vgsvcGstCtrlSessionHandleFileOpen() when opening in read-only mode [SCM fix]. bugref:9320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r83534 r83536  
    324324                    /* If we're opening a file in read-only mode, strip truncation mode.
    325325                     * rtFileRecalcAndValidateFlags() will validate it anyway, but avoid asserting in debug builds. */
    326                     if (fFlags & RTFILE_O_READ) 
     326                    if (fFlags & RTFILE_O_READ)
    327327                        fFlags &= ~RTFILE_O_TRUNCATE;
    328328                    rc = RTFileOpen(&pFile->hFile, pFile->szName, fFlags);
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