Skip to content

Commit

Permalink
More refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jbussdieker committed May 10, 2014
1 parent c2b7e02 commit da10333
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/archive/ar/format/bsd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def adjust_header(header)
header[:size] += namebuf.length
header[:long_name] = namebuf
header[:name] = "#1/#{namebuf.length}"
else
header[:long_name] = ""
end
header
end
Expand All @@ -50,7 +52,7 @@ def header_to_s(header)
data += "%-8s" % header[:mode].to_s(8)
data += "%-10s" % header[:size]
data += "%2s" % header[:magic]
data += header[:long_name] if header[:long_name]
data += header[:long_name]
data
end
end
Expand Down

0 comments on commit da10333

Please sign in to comment.