]> Dogcows Code - chaz/tar/commit
Improve tar_getcwd
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 25 Sep 2013 12:58:43 +0000 (15:58 +0300)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 25 Sep 2013 13:04:21 +0000 (16:04 +0300)
commitb41b004638faa8b446fe37bb8b178a6be496c666
treef9b662107e07c1c66cd4175e8ddc2640a171fc9d
parente3d28d84bda24a45c239b398e7b42ccd9be2d0c2
Improve tar_getcwd

* src/common.h (tar_getcwd): Return pointer is const.
* src/misc.c (wd) <cwd>: New member.
(chdir_arg): Initialize cwd.
(tar_getcwd): Use cwd member to cache the result.  Take into
account absolute pathnames,
(normalize_filename): Don't free the value
returned from tar_getcwd.
* src/names.c (name_next_elt): Remove leftover call chdir().
* tests/Makefile.am: Add new tests.
* tests/testsuite.at: Likewise.

* tests/incr08.at: New testcase.
* tests/remfiles04.at: New testcase.
* tests/remfiles05.at: New testcase.
* tests/remfiles06.at: New testcase.
* tests/remfiles07.at: New testcase.
src/common.h
src/misc.c
src/names.c
tests/Makefile.am
tests/incr08.at [new file with mode: 0644]
tests/remfiles04.at [new file with mode: 0644]
tests/remfiles05.at [new file with mode: 0644]
tests/remfiles06.at [new file with mode: 0644]
tests/remfiles07.at [new file with mode: 0644]
tests/testsuite.at
This page took 0.021117 seconds and 4 git commands to generate.