]> Dogcows Code - chaz/tar/commit
Revamp tar_getcwd/normalize_filename stuff.
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 1 Oct 2013 18:48:30 +0000 (21:48 +0300)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 1 Oct 2013 18:48:30 +0000 (21:48 +0300)
commitd28eee6b4f16d0fb847ee57771a42062259405b8
tree471d510aec2cb6407334cc8db977ccd189e24746
parentd3fd92c6fb2f576037aefebfd15da25b7cb00430
Revamp tar_getcwd/normalize_filename stuff.

The changes are based on the discussion with Nathan.

* src/common.h (normalize_filename): Take two arguments. All
callers updated.
(tar_getcwd): Replaced with ..
(tar_getcdpath): New proto.
* src/misc.c (normalize_filename): Take two arguments.
(chdir_arg): Populate cwd along with creating the
structure.
(tar_getcwd): Removed.
(tar_getcdpath): New function.

* tests/incr09.at: New test case.
* tests/Makefile.am: Add new tests.
* tests/testsuite.at: Likewise.
src/common.h
src/incremen.c
src/misc.c
src/names.c
tests/Makefile.am
tests/incr09.at [new file with mode: 0644]
tests/testsuite.at
This page took 0.018389 seconds and 4 git commands to generate.