From: Jeffrey Altman Date: Thu, 25 Sep 2014 17:21:48 +0000 (-0400) Subject: Windows: FileStandardInfo Link count X-Git-Tag: upstream/1.8.0_pre1^2~566 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8da84729c8f1e849882aea7b1268c6ac49936f21;p=packages%2Fo%2Fopenafs.git Windows: FileStandardInfo Link count Instead of returning 1 in all cases the ObjectInformation.Links value should be returned to the caller. Change-Id: I719bebca9299953c6afc3352117c1e1bf99d63f6 Reviewed-on: http://gerrit.openafs.org/11507 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp index c795998a5..274b043ce 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp @@ -954,7 +954,7 @@ AFSQueryStandardInfo( IN PIRP Irp, RtlZeroMemory( Buffer, *Length); - Buffer->NumberOfLinks = 1; + Buffer->NumberOfLinks = DirectoryCB->ObjectInformation->Links; Buffer->DeletePending = BooleanFlagOn( pCcb->DirectoryCB->Flags, AFS_DIR_ENTRY_PENDING_DELETE); Buffer->AllocationSize.QuadPart = DirectoryCB->ObjectInformation->AllocationSize.QuadPart;