From: Paul Eggert Date: Wed, 23 Oct 2013 02:16:26 +0000 (-0700) Subject: Fix core dump on Solaris 10 when "." isn't readable. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=a2e0cd0c0593b7084fbe47d46ddab945cd24af02;hp=a2e0cd0c0593b7084fbe47d46ddab945cd24af02;p=chaz%2Ftar Fix core dump on Solaris 10 when "." isn't readable. Reported by Peter Kruse in . 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. ---