VirtualBox

Changeset 78205 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 18, 2019 12:03:22 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/rtFsModeFromDos: Ignore read-only DOS attribute on directories. ticketref:18345 bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/fs.cpp

    r77233 r78205  
    8787        fMode = (fMode & ~RTFS_TYPE_MASK) | RTFS_TYPE_SYMLINK;
    8888
    89     /* writable? */
    90     if (!(fMode & RTFS_DOS_READONLY))
     89    /*
     90     * Writable?
     91     *
     92     * Note! We ignore the read-only flag on directories as windows seems to
     93     *       use it for purposes other than writability (@ticketref{18345}):
     94     *       https://support.microsoft.com/en-gb/help/326549/you-cannot-view-or-change-the-read-only-or-the-system-attributes-of-fo
     95     *
     96     */
     97    if ((fMode & (RTFS_DOS_DIRECTORY | RTFS_DOS_READONLY)) != RTFS_DOS_READONLY)
    9198        fMode |= RTFS_UNIX_IWUSR | RTFS_UNIX_IWGRP | RTFS_UNIX_IWOTH;
    9299    return fMode;
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