]> Dogcows Code - chaz/tar/commit
tar: fix symlink race and symlink transform bug
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jul 2015 16:53:00 +0000 (09:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jul 2015 16:53:56 +0000 (09:53 -0700)
commitfe3b106cb3b0bc4d50230ed263bf5ccbc8bf1ea7
treed8d1f6916dde800cab76add8cf611ffcdd6633f5
parent3828942550fba1f88136ffbc018a72bdeb930902
tar: fix symlink race and symlink transform bug

Problem reported by Tobias Stoeckmann in:
http://lists.gnu.org/archive/html/bug-tar/2015-07/msg00004.html
* gnulib.modules: Add areadlinkat-with-size.
* src/create.c: Include areadlink.h.
(dump_file0): Use areadlinkat_with_size, rather than trying to do
it by hand, incorrectly.  This also avoids assumption that
the symlink contents fit on the stack.  Also, use the transformed
link name, not the original link name, when deciding whether the
name is long enough to require writing a long link.
gnulib.modules
src/create.c
This page took 0.01833 seconds and 4 git commands to generate.