VirtualBox

Changeset 68078 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jul 21, 2017 10:30:04 AM (7 years ago)
Author:
vboxsync
Message:

iso9660vfs: Report half sensible default mode flags on files and dirs, not just zero permissions.

File:
1 edited

Legend:

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

    r67849 r68078  
    435435    pCore->offDirRec            = offDirRec;
    436436    pCore->fAttrib              = pDirRec->fFileFlags & ISO9660_FILE_FLAGS_DIRECTORY
    437                                 ? RTFS_DOS_DIRECTORY | RTFS_TYPE_DIRECTORY : RTFS_TYPE_FILE;
     437                                ? 0755 | RTFS_TYPE_DIRECTORY | RTFS_DOS_DIRECTORY
     438                                : 0644 | RTFS_TYPE_FILE;
    438439    if (pDirRec->fFileFlags & ISO9660_FILE_FLAGS_HIDDEN)
    439440        pCore->fAttrib |= RTFS_DOS_HIDDEN;
     
    11691170            *poffDirRec = pThis->Core.FirstExtent.offDisk + offEntryInDir;
    11701171            *ppDirRec   = pDirRec;
    1171             *pfMode     = pDirRec->fFileFlags & ISO9660_FILE_FLAGS_DIRECTORY ? RTFS_TYPE_DIRECTORY : RTFS_TYPE_FILE;
     1172            *pfMode     = pDirRec->fFileFlags & ISO9660_FILE_FLAGS_DIRECTORY
     1173                        ? 0755 | RTFS_TYPE_DIRECTORY | RTFS_DOS_DIRECTORY
     1174                        : 0644 | RTFS_TYPE_FILE;
    11721175
    11731176            /*
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