VirtualBox

Changeset 35699 in vbox


Ignore:
Timestamp:
Jan 25, 2011 8:46:13 AM (14 years ago)
Author:
vboxsync
Message:

VBoxExtPackHelperApp: override umask when creating directories

File:
1 edited

Legend:

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

    r35542 r35699  
    350350    if (RT_FAILURE(rc))
    351351        return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to create directory '%s': %Rrc", pszDstDirName, rc);
     352#if !defined(RT_OS_WINDOWS)
     353    /* This is necessary because of umask! */
     354    rc = RTPathSetMode(pszDstDirName, 0755);
     355    if (RT_FAILURE(rc))
     356        return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to set directory permissions: %Rrc ('%s')", rc, pszDstDirName);
     357#else
    352358    /** @todo Ownership tricks on windows? */
     359#endif
    353360    return RTEXITCODE_SUCCESS;
    354361}
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