VirtualBox

Changeset 25695 in vbox


Ignore:
Timestamp:
Jan 8, 2010 5:27:49 PM (15 years ago)
Author:
vboxsync
Message:

Shared folders: resolve symlinks on host.

File:
1 edited

Legend:

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

    r25292 r25695  
    498498
    499499            /** @todo don't check when creating files or directories; waste of time */
    500             rc = RTPathQueryInfo(pszFullPath, &info, RTFSOBJATTRADD_NOTHING);
     500            rc = RTPathQueryInfoEx(pszFullPath, &info, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK);
    501501            if (rc == VERR_FILE_NOT_FOUND || rc == VERR_PATH_NOT_FOUND)
    502502            {
     
    512512                    {
    513513                        *src = 0;
    514                         rc = RTPathQueryInfo (pszFullPath, &info, RTFSOBJATTRADD_NOTHING);
     514                        rc = RTPathQueryInfoEx(pszFullPath, &info, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK);
    515515                        *src = RTPATH_DELIMITER;
    516516                        if (rc == VINF_SUCCESS)
     
    548548                            fEndOfString = false;
    549549                            *end = 0;
    550                             rc = RTPathQueryInfo(src, &info, RTFSOBJATTRADD_NOTHING);
     550                            rc = RTPathQueryInfoEx(src, &info, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK);
    551551                            Assert(rc == VINF_SUCCESS || rc == VERR_FILE_NOT_FOUND || rc == VERR_PATH_NOT_FOUND);
    552552                        }
     
    888888
    889889            /** @todo Possible race left here. */
    890             if (RT_SUCCESS(RTPathQueryInfo (pszPath, &info, RTFSOBJATTRADD_NOTHING)))
     890            if (RT_SUCCESS(RTPathQueryInfoEx(pszPath, &info, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK)))
    891891            {
    892892#ifdef RT_OS_WINDOWS
     
    11611161    int rc;
    11621162
    1163     rc = RTPathQueryInfo (pszPath, &info, RTFSOBJATTRADD_NOTHING);
     1163    rc = RTPathQueryInfoEx(pszPath, &info, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK);
    11641164    LogFlow(("SHFL_CF_LOOKUP\n"));
    11651165    /* Client just wants to know if the object exists. */
     
    12531253            RTFSOBJINFO info;
    12541254
    1255             rc = RTPathQueryInfo (pszFullPath, &info, RTFSOBJATTRADD_NOTHING);
    1256             LogFlow(("RTPathQueryInfo returned %Rrc\n", rc));
     1255            rc = RTPathQueryInfoEx(pszFullPath, &info, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK);
     1256            LogFlow(("RTPathQueryInfoEx returned %Rrc\n", rc));
    12571257
    12581258            if (RT_SUCCESS(rc))
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