diff -ru open-vm-tools-10.3.0-8931395-orig/lib/hgfsServer/hgfsServer.c open-vm-tools-10.3.0-8931395/lib/hgfsServer/hgfsServer.c --- open-vm-tools-10.3.0-8931395-orig/lib/hgfsServer/hgfsServer.c 2018-06-23 03:04:02.000000000 -0700 +++ open-vm-tools-10.3.0-8931395/lib/hgfsServer/hgfsServer.c 2019-02-02 14:11:19.537039738 -0800 @@ -6536,9 +6536,11 @@ payload = &reply->payload[0]; } if (payload) { + uint32 actualSize = 0; status = HgfsPlatformReadFile(readFd, input->session, offset, requiredSize, payload, - &reply->actualSize); + &actualSize); + reply->actualSize = actualSize; if (HGFS_ERROR_SUCCESS == status) { reply->reserved = 0; replyPayloadSize = sizeof *reply; @@ -6556,10 +6558,12 @@ break; } case HGFS_OP_READ: { + uint32 actualSize = 0; HgfsReplyRead *reply = replyRead; status = HgfsPlatformReadFile(readFd, input->session, offset, requiredSize, - reply->payload, &reply->actualSize); + reply->payload, &actualSize); + reply->actualSize = actualSize; if (HGFS_ERROR_SUCCESS == status) { replyPayloadSize = sizeof *reply + reply->actualSize; } else {