]> Dogcows Code - chaz/tar/commit
tar: fix -x --overwrite bug (no --dereference, ! O_NOFOLLOW)
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 27 Oct 2010 00:57:44 +0000 (17:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 27 Oct 2010 00:58:53 +0000 (17:58 -0700)
commite23d123b9326881803da64b1eb1e35fc0362e993
tree571b2dc9841c10fa25bb79aa24a356f03dc3a675
parent6398c7a79c88621453b0f312a5007414ead59843
tar: fix -x --overwrite bug (no --dereference, ! O_NOFOLLOW)

This bug was discovered on Solaris 8.  On older hosts lacking
O_NOFOLLOW, tar -x --overwrite (without --dereference) follows
symbolic links, causing the "extract over symlinks" test to fail.

* src/extract.c (open_output_file): If O_NOFOLLOW is needed but
does not work, check for a symlink separately.
src/extract.c
This page took 0.023154 seconds and 4 git commands to generate.