VirtualBox

Ignore:
Timestamp:
Apr 1, 2009 11:55:44 AM (16 years ago)
Author:
vboxsync
Message:

HostServices/SharedFolders: on non-windows (=posix) host use 0666 as base mode

File:
1 edited

Legend:

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

    r18128 r18593  
    563563        {
    564564            fOpen |= RTFILE_O_ACCESS_ATTR_DEFAULT;
     565            /** @todo for posix guests we should allow passing the mode. */
     566            fOpen |= 0666 << RTFILE_O_CREATE_MODE_SHIFT;
    565567            Log(("FLAG: SHFL_CF_ACCESS_ATTR_NONE\n"));
    566568            break;
     
    570572        {
    571573            fOpen |= RTFILE_O_ACCESS_ATTR_READ;
     574            /** @todo for posix guests we should allow passing the mode.
     575             * Additionally this esoteric case - new file with only read
     576             * access - should be tested with apps depending on this. */
     577            fOpen |= 0444 << RTFILE_O_CREATE_MODE_SHIFT;
    572578            Log(("FLAG: SHFL_CF_ACCESS_ATTR_READ\n"));
    573579            break;
     
    577583        {
    578584            fOpen |= RTFILE_O_ACCESS_ATTR_WRITE;
     585            /** @todo for posix guests we should allow passing the mode.
     586             * Additionally this esoteric case - new file with only write
     587             * access - should be tested with apps depending on this. */
     588            fOpen |= 0222 << RTFILE_O_CREATE_MODE_SHIFT;
    579589            Log(("FLAG: SHFL_CF_ACCESS_ATTR_WRITE\n"));
    580590            break;
     
    584594        {
    585595            fOpen |= RTFILE_O_ACCESS_ATTR_READWRITE;
     596            /** @todo for posix guests we should allow passing the mode. */
     597            fOpen |= 0666 << RTFILE_O_CREATE_MODE_SHIFT;
    586598            Log(("FLAG: SHFL_CF_ACCESS_ATTR_READWRITE\n"));
    587599            break;
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