Skip to content

Commit

Permalink
use REPARSE_POINT rather than SYMBOLIC_LINK
Browse files Browse the repository at this point in the history
  • Loading branch information
maharmstone committed Dec 22, 2022
1 parent 7ba35a0 commit 8ce5ca4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/ntfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ enum class ntfs_attribute : uint32_t {
INDEX_ROOT = 0x90,
INDEX_ALLOCATION = 0xA0,
BITMAP = 0xB0,
SYMBOLIC_LINK = 0xC0,
REPARSE_POINT = 0xC0,
EA_INFORMATION = 0xD0,
EA = 0xE0,
PROPERTY_SET = 0xF0,
Expand Down Expand Up @@ -135,8 +135,8 @@ struct fmt::formatter<enum ntfs_attribute> {
case ntfs_attribute::BITMAP:
return fmt::format_to(ctx.out(), "BITMAP");

case ntfs_attribute::SYMBOLIC_LINK:
return fmt::format_to(ctx.out(), "SYMBOLIC_LINK");
case ntfs_attribute::REPARSE_POINT:
return fmt::format_to(ctx.out(), "REPARSE_POINT");

case ntfs_attribute::EA_INFORMATION:
return fmt::format_to(ctx.out(), "EA_INFORMATION");
Expand Down
4 changes: 2 additions & 2 deletions src/ntfs2btrfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2300,9 +2300,9 @@ static void add_inode(root& r, uint64_t inode, uint64_t ntfs_inode, bool& is_dir
break;
}

case ntfs_attribute::SYMBOLIC_LINK: {
case ntfs_attribute::REPARSE_POINT: {
if (att.FormCode == NTFS_ATTRIBUTE_FORM::NONRESIDENT_FORM)
throw formatted_error("Error - SYMBOLIC_LINK is non-resident"); // FIXME - can this happen?
throw formatted_error("Error - REPARSE_POINT is non-resident"); // FIXME - can this happen?

reparse_point.resize(res_data.size());
memcpy(reparse_point.data(), res_data.data(), res_data.size());
Expand Down

0 comments on commit 8ce5ca4

Please sign in to comment.