commit | 28711d308d9d70801ac0c9552df834ddafff2385 | [log] [tgz] |
---|---|---|
author | Tom Marshall <tdm@cyngn.com> | Wed Feb 10 00:01:41 2016 -0500 |
committer | Rob Landley <rob@landley.net> | Wed Feb 10 22:34:51 2016 -0600 |
tree | a11eba94f171a30a44d139f43e2d2a505a9e9170 | |
parent | 5b61086cac812b60d21e8cfe0e74920f791bc5bc [diff] |
toybox: tar: Fix support for long names Pathnames may be longer than the name field in the header, so use strncpy() instead of xstrncpy() to avoid bailing out. Also add unit tests to ensure proper handling of short and long pathnames. Change-Id: Id025891993746889564b479e5185cf9721b54a55