2 issues with tar
Denys Vlasenko
vda.linux at googlemail.com
Tue Mar 1 15:26:09 UTC 2011
On Monday 28 February 2011 09:23, Alexey Soloviev wrote:
> Hello,
> Met 2 problems with tar and wander if they are new or known.
>
> Issue 1: tar doesn't restore files or directories added with relative
> name starting with "../"
> Scenario:
> busybox tar -c -f archive.tar ../tobearchived
> busybox tar -xf archive.tar
> tar: name with '..' encountered: '../tobearchived'
>
> Gnu tar removes ../ from paths of archived files and directories, while
> busybox's tar doesn't.
> Should it be fixed?
> Note that archive created by busybox tar on the 1st step can be restored
> by gnu tar but not by busybox's.
>
> Issue 2: user name and group name in header of tar files are truncated
> to 11 characters.
Hmm, you are right.
I am increasing USERNAME_MAX_SIZE in libbb.h to 32-sizeof(uid_t).
--
vda
More information about the busybox
mailing list