VirtualBox

Changeset 6848 in vbox


Ignore:
Timestamp:
Feb 7, 2008 2:26:22 PM (17 years ago)
Author:
vboxsync
Message:

Shared folders: Bugfix for accessing file properties of files on the host side.

File:
1 edited

Legend:

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

    r6838 r6848  
    817817        }
    818818        if (   RT_SUCCESS(rc)
    819             || (SHFL_CF_ACT_OPEN_IF_EXISTS == BIT_FLAG(pParms->CreateFlags, SHFL_CF_ACT_MASK_IF_EXISTS))
    820             || (SHFL_FILE_EXISTS == pParms->Result))    /* Call of RTDirCreate() avbove failed, because already existing? */
     819            || (SHFL_CF_ACT_OPEN_IF_EXISTS == BIT_FLAG(pParms->CreateFlags, SHFL_CF_ACT_MASK_IF_EXISTS)))
    821820        {
    822821            /* Open the directory now */
     
    10241023                    pParms->CreateFlags |= SHFL_CF_DIRECTORY;
    10251024                }
     1025
    10261026                /**
    10271027                  * @todo This should be in the Windows Guest Additions, as no-one else
     
    10561056            if (RT_SUCCESS(rc))
    10571057            {
    1058                 if (BIT_FLAG(pParms->CreateFlags, SHFL_CF_DIRECTORY))
     1058                if (   BIT_FLAG(pParms->CreateFlags, SHFL_CF_DIRECTORY)
     1059                    && RTFS_IS_DIRECTORY(info.Attr.fMode))
     1060                {
    10591061                    rc = vbsfOpenDir (pszFullPath, pParms);
     1062                }
    10601063                else
     1064                {
    10611065                    rc = vbsfOpenFile (pszFullPath, pParms);
     1066                }
    10621067            }
    10631068        }
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