Changeset 27729 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Mar 26, 2010 11:06:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_prov.c
r26176 r27729 288 288 * try read only. 289 289 */ 290 bzero(&parms, sizeof(parms)); 290 291 str = sfprov_string(path, &size); 291 parms.Handle = 0;292 parms.Handle = SHFL_HANDLE_NIL; 292 293 parms.Info.cbObject = 0; 293 294 parms.CreateFlags = SHFL_CF_ACT_FAIL_IF_NEW | SHFL_CF_ACCESS_READWRITE; 294 295 rc = vboxCallCreate(&vbox_client, &mnt->map, str, &parms); 295 296 if (RT_FAILURE(rc)) { 296 if (RT_FAILURE(rc) && rc != VERR_ACCESS_DENIED) { 297 297 kmem_free(str, size); 298 return (EINVAL);298 return RTErrConvertToErrno(rc); 299 299 } 300 300 if (parms.Handle == SHFL_HANDLE_NIL) { 301 if (parms.Result == SHFL_NO_RESULT || 302 parms.Result == SHFL_PATH_NOT_FOUND || 301 if (parms.Result == SHFL_PATH_NOT_FOUND || 303 302 parms.Result == SHFL_FILE_NOT_FOUND) { 304 303 kmem_free(str, size); 305 return (ENOENT);304 return ENOENT; 306 305 } 307 306 parms.CreateFlags = … … 310 309 if (RT_FAILURE(rc)) { 311 310 kmem_free(str, size); 312 return (EINVAL);311 return RTErrConvertToErrno(rc); 313 312 } 314 313 if (parms.Handle == SHFL_HANDLE_NIL) { 315 314 kmem_free(str, size); 316 return (ENOENT);315 return RTErrConvertToErrno(rc); 317 316 } 318 317 }
Note:
See TracChangeset
for help on using the changeset viewer.