VirtualBox

Changeset 21256 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Jul 6, 2009 3:01:26 PM (16 years ago)
Author:
vboxsync
Message:

Shared folders host service: vbsfSetFileInfo should not update Unix mode bits, if the guest did not set them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp

    r20346 r21256  
    17431743
    17441744#ifndef RT_OS_WINDOWS
    1745             /* don't allow to clear the own bit, otherwise the guest wouldn't be
    1746              * able to access this file anymore */
    1747             if (fMode)
     1745            /* Don't allow the guest to clear the own bit, otherwise the guest wouldn't be
     1746             * able to access this file anymore. Only for guests, which set the UNIX mode. */
     1747            if (fMode & RTFS_UNIX_MASK)
    17481748                fMode |= RTFS_UNIX_IRUSR;
    17491749#endif
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