Ticket #9276: vboxsf.patch
| File vboxsf.patch, 1.3 KB (added by , 8 years ago) |
|---|
-
src/VBox/HostServices/SharedFolders/vbsf.cpp
481 481 pParms->Result = SHFL_FILE_REPLACED; 482 482 } 483 483 if ( ( SHFL_CF_ACT_FAIL_IF_EXISTS 484 == BIT_FLAG(pParms->CreateFlags, SHFL_CF_ACT_MASK_IF_EXISTS)) 485 || ( SHFL_CF_ACT_CREATE_IF_NEW 486 == BIT_FLAG(pParms->CreateFlags, SHFL_CF_ACT_MASK_IF_NEW))) 484 == BIT_FLAG(pParms->CreateFlags, SHFL_CF_ACT_MASK_IF_EXISTS))) 487 485 { 488 486 pParms->Result = SHFL_FILE_CREATED; 489 487 } … … 515 513 info.Attr.fMode |= 0111; 516 514 #endif 517 515 vbfsCopyFsObjInfoFromIprt(&pParms->Info, &info); 516 517 /* If file is empty and create flag is set, assume we just created it */ 518 if ( (0 == info.cbObject) 519 && ( SHFL_CF_ACT_CREATE_IF_NEW 520 == BIT_FLAG(pParms->CreateFlags, SHFL_CF_ACT_MASK_IF_NEW))) 521 { 522 pParms->Result = SHFL_FILE_CREATED; 523 } 518 524 } 519 525 } 520 526 /* Free resources if any part of the function has failed. */

