summaryrefslogtreecommitdiffstats
path: root/lib/libarchive
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-08-07 02:24:20 +0000
committerkientzle <kientzle@FreeBSD.org>2004-08-07 02:24:20 +0000
commit2f7b443faf678c628b87e6722a418f2016de4f19 (patch)
tree9c0130923564bd2894bc0fb86ab1b1f67dd8e4f7 /lib/libarchive
parentc95736ca877336fbea29f1923918b940a8b691e6 (diff)
downloadFreeBSD-src-2f7b443faf678c628b87e6722a418f2016de4f19.zip
FreeBSD-src-2f7b443faf678c628b87e6722a418f2016de4f19.tar.gz
Beef up the "cannot archive this" error message with the
actual mode that failed, to help track down a bug.
Diffstat (limited to 'lib/libarchive')
-rw-r--r--lib/libarchive/archive_write_set_format_pax.c3
-rw-r--r--lib/libarchive/archive_write_set_format_ustar.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libarchive/archive_write_set_format_pax.c b/lib/libarchive/archive_write_set_format_pax.c
index a8e5be8..70d32ba 100644
--- a/lib/libarchive/archive_write_set_format_pax.c
+++ b/lib/libarchive/archive_write_set_format_pax.c
@@ -351,7 +351,8 @@ archive_write_pax_header(struct archive *a,
return (ARCHIVE_WARN);
default:
archive_set_error(a, ARCHIVE_ERRNO_FILE_FORMAT,
- "tar format cannot archive this");
+ "tar format cannot archive this (mode=0%lo)",
+ (unsigned long)st_original->st_mode);
return (ARCHIVE_WARN);
}
}
diff --git a/lib/libarchive/archive_write_set_format_ustar.c b/lib/libarchive/archive_write_set_format_ustar.c
index 13436cf..3961e7d 100644
--- a/lib/libarchive/archive_write_set_format_ustar.c
+++ b/lib/libarchive/archive_write_set_format_ustar.c
@@ -332,7 +332,8 @@ __archive_write_format_header_ustar(struct archive *a, char buff[512],
break;
default:
archive_set_error(a, ARCHIVE_ERRNO_FILE_FORMAT,
- "tar format cannot archive this");
+ "tar format cannot archive this (mode=0%lo)",
+ (unsigned long)st->st_mode);
ret = ARCHIVE_WARN;
}
}
OpenPOWER on IntegriCloud