]> Dogcows Code - chaz/tar/commit
Use relative addressing in deferred unlinks.
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 26 Sep 2013 12:41:47 +0000 (15:41 +0300)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 26 Sep 2013 12:46:44 +0000 (15:46 +0300)
commitf7077dd38b018f19d3a5c7df6accc6b07b8a2356
tree49a453543fc77751890998bcd5a407ee664e1d45
parent5cb79ed51999e36add131116d3d3db586be9870e
Use relative addressing in deferred unlinks.

* src/common.h (tar_dirname): New function.
* src/misc.c (normalize_filename_x): Make extern.
(tar_dirname): New function.
(tar_getcwd): Take into account absoulte pathnames.
* src/unlink.c (deferred_unlink) <dir_idx>: New member; keeps the
value of chdir_current at the moment of structure allocation.
(flush_deferred_unlinks): Use chdir_do and relative addressing.
(queue_deferred_unlink): Initialize dir_idx.
* tests/Makefile.am: Add new tests.
* tests/testsuite.at: Add new tests.
* tests/remfiles06.at: Fix description.
* tests/remfiles07.at: Fix description.
* tests/remfiles08.at: New test case.
src/common.h
src/misc.c
src/unlink.c
tests/Makefile.am
tests/remfiles06.at
tests/remfiles07.at
tests/remfiles08.at [new file with mode: 0644]
tests/testsuite.at
This page took 0.023851 seconds and 4 git commands to generate.