VirtualBox

Changeset 78301 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 25, 2019 11:57:05 PM (6 years ago)
Author:
vboxsync
Message:

winnt/vboxsf: Hide the RTFS_DOS_NT_REPARSE_POINT attribute as we don't provide any related following information and this attribute would just confuse the guest if it was ever passed to us by the host. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/SharedFolders/driver/vbsfhlp.c

    r78285 r78301  
    6262    AssertCompile((RTFS_DOS_NT_ENCRYPTED           >> RTFS_DOS_SHIFT) == FILE_ATTRIBUTE_ENCRYPTED);
    6363
    64     uint32_t fNtAttribs = (fIprtMode & (RTFS_DOS_MASK_NT & ~(RTFS_DOS_NT_OFFLINE | RTFS_DOS_NT_DEVICE))) >> RTFS_DOS_SHIFT;
     64    uint32_t fNtAttribs = (fIprtMode & (RTFS_DOS_MASK_NT & ~(RTFS_DOS_NT_OFFLINE | RTFS_DOS_NT_DEVICE | RTFS_DOS_NT_REPARSE_POINT)))
     65                       >> RTFS_DOS_SHIFT;
    6566    return fNtAttribs ? fNtAttribs : FILE_ATTRIBUTE_NORMAL;
    6667}
     
    7576{
    7677    uint32_t fIprtMode = (fNtAttribs << RTFS_DOS_SHIFT) & RTFS_DOS_MASK_NT;
     78    fIprtMode &= ~(RTFS_DOS_NT_OFFLINE | RTFS_DOS_NT_DEVICE | RTFS_DOS_NT_REPARSE_POINT);
    7779    return fIprtMode ? fIprtMode : RTFS_DOS_NT_NORMAL;
    7880}
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