Skip to content

Commit

Permalink
Fix #45 Handling GNU large filename ext when filename's size is multi…
Browse files Browse the repository at this point in the history
…ple of 512
  • Loading branch information
bv-vijay committed Aug 26, 2023
1 parent 455290d commit 7e04e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/archive/tar/minitar/writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def write_header(header, long_name, short_name, prefix, needs_long_name)
:prefix => "",
:name => PosixHeader::GNU_EXT_LONG_LINK,
:typeflag => "L",
:size => long_name.length,
:size => long_name.length + 1,
:mode => 0
}
@io.write(PosixHeader.new(long_name_header))
Expand Down

0 comments on commit 7e04e36

Please sign in to comment.