From 4fa87bf1529b857a28528fef8e62100a3bcb2f42 Mon Sep 17 00:00:00 2001 From: Pawel Dziepak Date: Tue, 19 Mar 2013 02:30:17 +0100 Subject: [PATCH] nfs4: check for presence of FATTR4_CHANGE is not required This fixes CID 991501. --- src/add-ons/kernel/file_systems/nfs4/NFS4Inode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/file_systems/nfs4/NFS4Inode.cpp b/src/add-ons/kernel/file_systems/nfs4/NFS4Inode.cpp index 56c226baeb..97f9a10b51 100644 --- a/src/add-ons/kernel/file_systems/nfs4/NFS4Inode.cpp +++ b/src/add-ons/kernel/file_systems/nfs4/NFS4Inode.cpp @@ -45,7 +45,7 @@ NFS4Inode::GetChangeInfo(uint64* change, bool attrDir) AttrValue* values; uint32 count; result = reply.GetAttr(&values, &count); - if (result != B_OK || count < 1) + if (result != B_OK) return result; // FATTR4_CHANGE is mandatory