VirtualBox

Changeset 23973 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Oct 22, 2009 12:34:22 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53801
Message:

*,RTFileOpen: Fixing RTFileOpen flag misdesign: The deny, access and action flags are mandatory now.

Location:
trunk/src/VBox/Runtime/common/misc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/s3.cpp

    r22735 r23973  
    873873    /* Open the file */
    874874    RTFILE hFile;
    875     int rc = RTFileOpen(&hFile, pszFileName, RTFILE_O_CREATE | RTFILE_O_WRITE);
     875    int rc = RTFileOpen(&hFile, pszFileName, RTFILE_O_CREATE | RTFILE_O_WRITE | RTFILE_O_DENY_NONE);
    876876    if (RT_FAILURE(rc))
    877877        return rc;
     
    931931    /* Open the file */
    932932    RTFILE hFile;
    933     int rc = RTFileOpen(&hFile, pszFileName, RTFILE_O_OPEN | RTFILE_O_READ);
     933    int rc = RTFileOpen(&hFile, pszFileName, RTFILE_O_OPEN | RTFILE_O_READ | RTFILE_O_DENY_NONE);
    934934    if (RT_FAILURE(rc))
    935935        return rc;
  • trunk/src/VBox/Runtime/common/misc/tar.cpp

    r21859 r23973  
    324324    /* Open the tar file */
    325325    RTFILE hFile;
    326     int rc = RTFileOpen(&hFile, pszTarFile, RTFILE_O_READ);
     326    int rc = RTFileOpen(&hFile, pszTarFile, RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
    327327    if (RT_FAILURE(rc))
    328328        return rc;
     
    383383    /* Open the tar file */
    384384    RTFILE hFile;
    385     int rc = RTFileOpen(&hFile, pszTarFile, RTFILE_O_READ);
     385    int rc = RTFileOpen(&hFile, pszTarFile, RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
    386386    if (RT_FAILURE(rc))
    387387        return rc;
     
    473473    /* Open the tar file */
    474474    RTFILE hFile;
    475     int rc = RTFileOpen(&hFile, pszTarFile, RTFILE_O_READ);
     475    int rc = RTFileOpen(&hFile, pszTarFile, RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
    476476    if (RT_FAILURE(rc))
    477477        return rc;
     
    567567    /* Open the tar file */
    568568    RTFILE hFile;
    569     int rc = RTFileOpen(&hFile, pszTarFile, RTFILE_O_READ);
     569    int rc = RTFileOpen(&hFile, pszTarFile, RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
    570570    if (RT_FAILURE(rc))
    571571        return rc;
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