]> Dogcows Code - chaz/tar/commit
Fix core dump on Solaris 10 when "." isn't readable.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 Oct 2013 02:16:26 +0000 (19:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 Oct 2013 02:17:23 +0000 (19:17 -0700)
commita2e0cd0c0593b7084fbe47d46ddab945cd24af02
tree417b1f7cc50aa950de8c734f7ca6dd592c47cd14
parentf6c25db5fef8f1e82c7a9e87ed42d311cb1bcb32
Fix core dump on Solaris 10 when "." isn't readable.

Reported by Peter Kruse in
<http://lists.gnu.org/archive/html/bug-tar/2013-10/msg00017.html>.
This doesn't fix all the Solaris 10 test failures, just the core dump.
* src/common.h, src/misc.c (tar_getcdpath): Now static.
* src/misc.c (normalize_filename): Report a fatal error
if cdpath is null, since we don't know the absolute name
of the working directory in that case.  FIXME: there should
be no need to know absolute file names.
(chdir_arg): Simplify wd allocation.
Don't assume that xgetcwd returns non-null.
src/common.h
src/misc.c
This page took 0.02131 seconds and 4 git commands to generate.