]> Dogcows Code - chaz/tar/commit
tar: no need to report getcwd error if never using the result
authorPaul R. Eggert <eggert@cs.ucla.edu>
Sun, 18 Jul 2010 19:19:18 +0000 (12:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Jul 2010 19:20:47 +0000 (12:20 -0700)
commit8c662c9f298467a459b5eb72deb8ed6f65e6dd95
treecfedb67972cfc9ec2a918d6781f9baf6aa6097ee
parent427b3b8c79b64f6ca08adbfcea7aa54f4496f124
tar: no need to report getcwd error if never using the result

* src/misc.c (struct wd): Rename 'saved' to 'err', with new semantics.
(chdir_arg, chdir_do): Adjust to new semantics.  Do not report an
error merely because save_cwd fails; report an error only if
save_cwd's result is needed later.
* tests/extrac09.at: New file, to test for bug that was fixed.
* tests/testsuite.at: Include it.
* tests/Makefile.am (TESTSUITE_AT): Add it.
src/misc.c
tests/Makefile.am
tests/extrac09.at [new file with mode: 0644]
tests/testsuite.at
This page took 0.023694 seconds and 4 git commands to generate.