From: Tim Kientzle Date: Sat, 15 Oct 2011 17:19:30 +0000 (-0400) Subject: Merge r3247 from trunk: Clear errors before returning X-Git-Tag: v3.0.4~2^2~169^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cd37a087fea2933a0dfb3deaa211702d31529f3;p=thirdparty%2Flibarchive.git Merge r3247 from trunk: Clear errors before returning from archive_read_support_format_all() SVN-Revision: 3735 --- diff --git a/libarchive/archive_read_support_format_all.c b/libarchive/archive_read_support_format_all.c index 967783885..573750811 100644 --- a/libarchive/archive_read_support_format_all.c +++ b/libarchive/archive_read_support_format_all.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2003-2007 Tim Kientzle + * Copyright (c) 2003-2011 Tim Kientzle * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -39,5 +39,13 @@ archive_read_support_format_all(struct archive *a) archive_read_support_format_tar(a); archive_read_support_format_xar(a); archive_read_support_format_zip(a); + + /* Note: We always return ARCHIVE_OK here, even if some of the + * above return ARCHIVE_WARN. The intent here is to enable + * "as much as possible." Clients who need specific + * compression should enable those individually so they can + * verify the level of support. */ + /* Clear any warning messages set by the above functions. */ + archive_clear_error(a); return (ARCHIVE_OK); }