Make sure that we always set the reparse point attribute
for symlinks in directory enumerations and attribute queries.
Change-Id: Ie7520cef64793e3385f229934189fc56a3edb584
Reviewed-on: http://gerrit.openafs.org/5793
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
&stFileInfo)))
{
+ ulAdditionalAttributes = FILE_ATTRIBUTE_REPARSE_POINT;
+
bUseFileInfo = TRUE;
}
}
pDirInfo->EndOfFile = stFileInfo.EndOfFile;
pDirInfo->AllocationSize = stFileInfo.AllocationSize;
- pDirInfo->FileAttributes = stFileInfo.FileAttributes;
+ pDirInfo->FileAttributes = stFileInfo.FileAttributes | ulAdditionalAttributes;
}
else if( BooleanFlagOn( pDirEntry->Flags, AFS_DIR_ENTRY_FAKE))
{
&stFileInfo)))
{
ulFileAttribs = stFileInfo.FileAttributes;
+
+ ulFileAttribs |= FILE_ATTRIBUTE_REPARSE_POINT;
}
}
&stFileInfo)))
{
ulFileAttribs = stFileInfo.FileAttributes;
+
+ ulFileAttribs |= FILE_ATTRIBUTE_REPARSE_POINT;
}
}
&stFileInfo)))
{
ulFileAttribs = stFileInfo.FileAttributes;
+
+ ulFileAttribs |= FILE_ATTRIBUTE_REPARSE_POINT;
}
}