Skip to content

Commit

Permalink
mkcompose: fix crash if no target for hardlink
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Jan 29, 2024
1 parent 7b1518f commit 171eae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file not shown.
2 changes: 2 additions & 0 deletions tools/mkcomposefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ static char *tree_resolve_hardlinks(dump_info *info)
hardlink_fixup *fixup = info->hardlink_fixups;
while (fixup != NULL) {
hardlink_fixup *next = fixup->next;
if (fixup->target_path == NULL)
return make_error("No target path for the hardlink");
struct lcfs_node_s *target =
lookup_path(info->root, fixup->target_path);
if (target == NULL)
Expand Down

0 comments on commit 171eae0

Please sign in to comment.