author | Rene Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Sat, 25 Mar 2006 22:21:07 +0000 (23:21 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 26 Mar 2006 00:40:34 +0000 (16:40 -0800) | ||
commit | 4c691724f175573a2dc4118782744cb0e852ab41 | |
tree | b6dadb1e5cf67c2d458a89fc3d4ae7af84edc239 | tree | snapshot |
parent | 86da1c567da0421649cb1e8e999311012c764337 | commit | diff |
tar-tree: Use the prefix field of a tar header
... to store parts of the path, if possible. This allows us to avoid
writing extended headers in certain cases (long pathes can only be
split at '/' chars).
Also adds a file to the test repo with a 100 chars long directory name.
Even old versions of tar that don't understand POSIX extended headers
should be able to handle this testcase.
Btw.: The longest path in the kernel tree currently has 70 chars.
Together with a 30 chars long prefix this would already cross the
field limit of 100 chars.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
... to store parts of the path, if possible. This allows us to avoid
writing extended headers in certain cases (long pathes can only be
split at '/' chars).
Also adds a file to the test repo with a 100 chars long directory name.
Even old versions of tar that don't understand POSIX extended headers
should be able to handle this testcase.
Btw.: The longest path in the kernel tree currently has 70 chars.
Together with a 30 chars long prefix this would already cross the
field limit of 100 chars.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
t/t5000-tar-tree.sh | diff | blob | history | |
tar-tree.c | diff | blob | history |