]> Dogcows Code - chaz/tar/commit
tar: do not dereference NULL pointer with '--remove-files .'
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Apr 2014 21:22:07 +0000 (14:22 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Apr 2014 21:22:59 +0000 (14:22 -0700)
commitfc58a8bd984eb5334f713ec7ac993bddfe9e77d3
treeeb3e195157e14a0e93fc4de86bad8a6ef9f18a50
parent7808b6981b2c7f828684148e2a65f9640958a59a
tar: do not dereference NULL pointer with '--remove-files .'

Problem reported by Thorsten Hirsch in:
http://lists.gnu.org/archive/html/bug-tar/2014-04/msg00011.html
* src/unlink.c (flush_deferred_unlinks):
Do not attempt to find the parent of "." when "." is
at the top level.
* tests/remfiles10.at: New file.
* tests/Makefile.am (TESTSUITE_AT):
* tests/testsuite.at: Add it.
src/unlink.c
tests/Makefile.am
tests/remfiles10.at [new file with mode: 0644]
tests/testsuite.at
This page took 0.023763 seconds and 4 git commands to generate.