mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
Gnu tar has problems creating an archive which contains a file with a hard
link to another file which has a long (>=100 char) name. When listing such an archive, the name of the link is truncated to 99 characters, and when extracting such an archive, an error is reported because it is trying to create a hard link to a file which doesn't exist. This patch fixes that problem and has also been sent to the GNU maintainers. Closes PR#1992 Submitted-By: David Dawes <dawes@landfill.physics.usyd.edu.au>
This commit is contained in:
parent
849635f6c0
commit
13ea765008
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19681
@ -313,7 +313,7 @@ dump_file (p, curdev, toplevel)
|
||||
}
|
||||
link_name++;
|
||||
}
|
||||
if (link_name - lp->name >= NAMSIZ)
|
||||
if (strlen(link_name) >= NAMSIZ)
|
||||
write_long (link_name, LF_LONGLINK);
|
||||
current_link_name = link_name;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user