From 030157166795628bbfa81e8b4b7ede35dfead8d0 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 22 Nov 2011 16:36:18 -0500 Subject: [PATCH] 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 --- src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5