From 2ec43cc0e6f7d39a1570a7daf02a23aec8015626 Mon Sep 17 00:00:00 2001 From: Andreas Henriksson Date: Thu, 25 Feb 2010 22:30:06 +0100 Subject: [PATCH 2/7] Patch from upstream (revision 1991) --- libarchive/archive_write_disk.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libarchive/archive_write_disk.c b/libarchive/archive_write_disk.c index caf958e..60699e0 100644 --- a/libarchive/archive_write_disk.c +++ b/libarchive/archive_write_disk.c @@ -434,7 +434,7 @@ _archive_write_header(struct archive *_a, struct archive_entry *entry) if (ret != ARCHIVE_OK) goto done; } -#ifdef HAVE_FCHDIR +#if defined(HAVE_FCHDIR) && defined(PATH_MAX) /* If path exceeds PATH_MAX, shorten the path. */ edit_deep_directories(a); #endif @@ -866,7 +866,7 @@ archive_write_disk_new(void) * object creation is likely to fail, but any error will get handled * at that time. */ -#ifdef HAVE_FCHDIR +#if defined(HAVE_FCHDIR) && defined(PATH_MAX) static void edit_deep_directories(struct archive_write_disk *a) { -- 1.7.1