<div dir="ltr">Currently, everywhere that needs to return FILE_INFORMATION_CLASS attributes has to call stat and then apply the flags FILE_ATTRIBUTE_ARCHIVE, FILE_ATTRIBUTE_DIRECTORY, FILE_ATTRIBUTE_READONLY, and FILE_ATTRIBUTE_REPARSE_POINT manually.  This patch consolidates all of these manual applications into fd_get_file_info (fstat) and get_file_info (stat/lstat).<br></div>