VirtualBox

Changeset 5259 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Oct 12, 2007 10:00:47 AM (17 years ago)
Author:
vboxsync
Message:

Small fix for file open parameter translation from Linux guest shared folders

Location:
trunk/src/VBox/Additions/linux/sharedfolders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/dirops.c

    r4860 r5259  
    5050                | SHFL_CF_DIRECTORY
    5151                | SHFL_CF_ACT_OPEN_IF_EXISTS
     52                | SHFL_CF_ACT_FAIL_IF_NEW
    5253                | SHFL_CF_ACCESS_READ
    5354                ;
     
    387388        params.CreateFlags = 0
    388389                | SHFL_CF_ACT_CREATE_IF_NEW
    389                 | SHFL_CF_ACT_OVERWRITE_IF_EXISTS
     390                | SHFL_CF_ACT_FAIL_IF_EXISTS
    390391                | SHFL_CF_ACCESS_READWRITE
    391392                | (dirop ? SHFL_CF_DIRECTORY : 0)
  • trunk/src/VBox/Additions/linux/sharedfolders/regops.c

    r4860 r5259  
    221221                if (file->f_flags & O_TRUNC) {
    222222                        LogFunc(("O_TRUNC set\n"));
    223                         params.CreateFlags |= SHFL_CF_ACT_OVERWRITE_IF_EXISTS;
     223                        params.CreateFlags |= (  SHFL_CF_ACT_OVERWRITE_IF_EXISTS
     224                                               | SHFL_CF_ACCESS_WRITE);
    224225                }
    225226                else {
     
    231232                if (file->f_flags & O_TRUNC) {
    232233                        LogFunc(("O_TRUNC set\n"));
    233                         params.CreateFlags |= SHFL_CF_ACT_OVERWRITE_IF_EXISTS;
     234                        params.CreateFlags |= (  SHFL_CF_ACT_OVERWRITE_IF_EXISTS
     235                                               | SHFL_CF_ACCESS_WRITE);
    234236                }
    235237        }
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