]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correct an out-by-one error when earlying out ustar filenames that
authorBrian Somers <brian@FreeBSD.org>
Sun, 29 Aug 2010 11:56:56 +0000 (11:56 +0000)
committerBrian Somers <brian@FreeBSD.org>
Sun, 29 Aug 2010 11:56:56 +0000 (11:56 +0000)
commitcd14b457565dfc1669c2e598ddc0b3e4bdd3f429
treed627b6ee1647bb2a156585082c4357c0e4cad0ee
parentb2d89ed701b83a173b01f7b479adb7df4c1d7d53
Correct an out-by-one error when earlying out ustar filenames that
are too long.  Filenames escaping this test are caught later on,
so the bug doesn't cause any breakage.

Document the correct ustar limitations in pax.  As I have no access
to the IEEE 1003.2 spec, I can only assume that the limitations
imposed are in fact correct.

Add regression tests for the filename limitations imposed by pax.

MFC after: 3 weeks
bin/pax/pax.1
bin/pax/tar.c
tools/regression/bin/pax/Makefile [new file with mode: 0644]
tools/regression/bin/pax/regress.t [new file with mode: 0755]