libraries/iosrv/server/file.cpp
changeset 95 b3ffff030d5c
parent 0 7f656887cf89
equal deleted inserted replaced
94:8df58d8c99e8 95:b3ffff030d5c
    91 	LOG(CIoLog::Printf(_L("Attempting to create file 0x%08x (\"%S\")"), this, &aName));
    91 	LOG(CIoLog::Printf(_L("Attempting to create file 0x%08x (\"%S\")"), this, &aName));
    92 	switch (aMode)
    92 	switch (aMode)
    93 		{
    93 		{
    94 		case RIoFile::ERead:
    94 		case RIoFile::ERead:
    95 			{
    95 			{
    96 			User::LeaveIfError(iFile.Open(aFs, aName, EFileRead));
    96 			User::LeaveIfError(iFile.Open(aFs, aName, EFileRead | EFileShareReadersOnly));
    97 			break;
    97 			break;
    98 			}
    98 			}
    99 		case RIoFile::EOverwrite:
    99 		case RIoFile::EOverwrite:
   100 			{
   100 			{
   101 			User::LeaveIfError(iFile.Replace(aFs, aName, EFileWrite));
   101 			User::LeaveIfError(iFile.Replace(aFs, aName, EFileWrite));