VirtualBox

Ignore:
Timestamp:
Jan 25, 2011 2:03:01 PM (14 years ago)
Author:
vboxsync
Message:

VBoxExtPackHelperApp.cpp: another place for working around umask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-helper-apps/VBoxExtPackHelperApp.cpp

    r35708 r35712  
    704704     */
    705705    RTDirCreate(pszBaseDir, 0755);
     706#ifndef RT_OS_WINDOWS
     707    /*
     708     * Because of umask, we have to apply the mode again.
     709     */
     710    rc = RTPathSetMode(pszBaseDir, 0755);
     711    if (RT_FAILURE(rc))
     712        return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to set directory permissions on '%s': %Rrc", pszBaseDir, rc);
     713#else
     714    /** @todo Ownership tricks on windows? */
     715#endif
    706716    rc = RTDirCreate(szTmpPath, 0700);
    707717    if (RT_FAILURE(rc))
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