VirtualBox

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


Ignore:
Timestamp:
Aug 9, 2012 10:15:38 AM (12 years ago)
Author:
vboxsync
Message:

Runtime: add an fMode parameter to RTDirCreateTemp() and adjust callers.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/createtemp-generic.cpp

    r42692 r42708  
    106106
    107107
    108 RTDECL(int) RTDirCreateTemp(char *pszTemplate)
     108RTDECL(int) RTDirCreateTemp(char *pszTemplate, RTFMODE fMode)
    109109{
    110110    char       *pszX;
     
    123123    {
    124124        rtCreateTempFillTemplate(pszX, cXes);
    125         rc = RTDirCreate(pszTemplate, 0700, 0);
     125        rc = RTDirCreate(pszTemplate, fMode, 0);
    126126        if (RT_SUCCESS(rc))
    127127            return rc;
  • trunk/src/VBox/Runtime/testcase/tstRTTemp.cpp

    r28800 r42708  
    7070            break;
    7171
    72         rc = RTDirCreateTemp(papszNames[i]);
     72        rc = RTDirCreateTemp(papszNames[i], 0700);
    7373        if (rc != VINF_SUCCESS)
    7474        {
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