Changeset 33439 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Oct 25, 2010 7:35:58 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67029
- Location:
- trunk/src/VBox/HostServices/SharedFolders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/service.cpp
r33409 r33439 1050 1050 { 1051 1051 /* Execute the function. */ 1052 1053 1052 rc = vbsfRemove (pClient, root, pPath, cbPath, flags); 1054 1053 if (RT_SUCCESS(rc)) -
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r33409 r33439 28 28 #include <iprt/path.h> 29 29 #include <iprt/string.h> 30 #include <iprt/symlink.h> 30 31 #include <iprt/uni.h> 31 32 #include <iprt/stream.h> … … 1675 1676 if (RT_SUCCESS (rc)) 1676 1677 { 1677 rc = RT ReadLink(pszFullPath, (char *) pBuffer, cbBuffer);1678 rc = RTSymlinkRead(pszFullPath, (char *) pBuffer, cbBuffer); 1678 1679 1679 1680 /* free the path string */ … … 2041 2042 2042 2043 /* Validate input */ 2043 if ( flags & ~(SHFL_REMOVE_FILE|SHFL_REMOVE_DIR )2044 if ( flags & ~(SHFL_REMOVE_FILE|SHFL_REMOVE_DIR|SHFL_REMOVE_SYMLINK) 2044 2045 || cbPath == 0 2045 2046 || pPath == 0) … … 2065 2066 if (RT_SUCCESS (rc)) 2066 2067 { 2067 if (flags & SHFL_REMOVE_FILE) 2068 if (flags & SHFL_REMOVE_SYMLINK) 2069 rc = RTSymlinkDelete(pszFullPath); 2070 else if (flags & SHFL_REMOVE_FILE) 2068 2071 rc = RTFileDelete(pszFullPath); 2069 2072 else … … 2155 2158 return rc; 2156 2159 2157 rc = RTSymlink (pszFullNewPath, (const char *)pOldPath->String.utf8);2160 rc = RTSymlinkCreate(pszFullNewPath, (const char *)pOldPath->String.utf8, RTSYMLINKTYPE_UNKNOWN); 2158 2161 if (RT_SUCCESS (rc)) 2159 2162 rc = RTPathQueryInfoEx(pszFullNewPath, pInfo, RTFSOBJATTRADD_NOTHING, SHFL_RT_LINK(pClient));
Note:
See TracChangeset
for help on using the changeset viewer.