nfs4: Fix #9556: wrong error handling in CreateObject

This commit is contained in:
Pawel Dziepak
2013-03-21 02:32:00 +01:00
parent 3d064796c7
commit 18d2a3609e
@@ -409,16 +409,16 @@ Inode::CreateObject(const char* name, const char* path, int mode, FileType type,
uint64 fileID;
FileHandle handle;
status_t result = NFS4Inode::CreateObject(name, path, mode, type, &changeInfo,
&fileID, &handle);
status_t result = NFS4Inode::CreateObject(name, path, mode, type,
&changeInfo, &fileID, &handle);
if (result != B_OK)
return B_OK;
return result;
fFileSystem->Root()->MakeInfoInvalid();
result = ChildAdded(name, fileID, handle);
if (result != B_OK)
return B_OK;
return result;
fCache->Lock();
if (fCache->Valid()) {