symlinks: GetReparsePoint will return NOT_A_REPARSE_POINT

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2010-11-04 09:57:43 -04:00 committed by unknown
parent 7eae229661
commit 4398678517

View file

@ -4341,6 +4341,14 @@ static NTSTATUS nfs41_GetReparsePoint(
NTSTATUS status;
DbgEn();
if (!BooleanFlagOn(RxContext->pFcb->Attributes,
FILE_ATTRIBUTE_REPARSE_POINT)) {
status = STATUS_NOT_A_REPARSE_POINT;
DbgP("FILE_ATTRIBUTE_REPARSE_POINT is not set!\n");
goto out;
}
if (FsCtl->OutputBufferLength < HeaderLen) {
RxContext->InformationToReturn = HeaderLen;
status = STATUS_BUFFER_TOO_SMALL;