From: Jeffrey Altman Date: Tue, 22 Nov 2011 21:36:18 +0000 (-0500) Subject: Windows: _._AFS_IOCTL_._ size is zero X-Git-Tag: upstream/1.8.0_pre1^2~3019 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=030157166795628bbfa81e8b4b7ede35dfead8d0;p=packages%2Fo%2Fopenafs.git Windows: _._AFS_IOCTL_._ size is zero When replying to a FileStandardInformation query on the pioctl special file, the size of the file is 0. Failure to return 0 can result in an anti-virus program attempting to read the file via a paging request which will fail. Change-Id: I83f2f40cca99c04a5fe06546f19bdf96dfbb4951 Reviewed-on: http://gerrit.openafs.org/6109 Tested-by: BuildBot Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp index 3ac9a85db..a4d7df8c0 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp @@ -3183,8 +3183,8 @@ AFSProcessPIOCtlQueryInfo( IN IRP *Irp, pStandard->NumberOfLinks = 1; pStandard->DeletePending = 0; - pStandard->AllocationSize.QuadPart = 4096; - pStandard->EndOfFile.QuadPart = 4096; + pStandard->AllocationSize.QuadPart = 0; + pStandard->EndOfFile.QuadPart = 0; pStandard->Directory = 0; *Length -= sizeof( FILE_STANDARD_INFORMATION);