Skip to content

Commit

Permalink
Add comment for REPARSE_POINT
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Aug 21, 2024
1 parent eaefd9d commit d9601ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/zip_source_file_win32_named.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ _zip_win32_named_op_stat(zip_source_file_context_t *ctx, zip_source_file_stat_t
if ((file_attributes.dwFileAttributes & (FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_DEVICE)) == 0) {
if (file_attributes.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) {
WIN32_FIND_DATA find_data;
/* Deduplication on Windows replaces files with reparse points;
* accept them as regular files. */
if (file_ops->find_first_file(ctx->fname, &find_data) != INVALID_HANDLE_VALUE) {
st->regular_file = (find_data.dwReserved0 == IO_REPARSE_TAG_DEDUP);
}
Expand Down

0 comments on commit d9601ab

Please sign in to comment.