From 49cbc2f73bac153f85b62620eaeb6913d070ca3c Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Wed, 24 Feb 2010 00:27:57 -0500 Subject: [PATCH] Clarify that archive_errno() cannot be reliably used to determine when an error occurs. SVN-Revision: 1969 --- libarchive/archive_util.3 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libarchive/archive_util.3 b/libarchive/archive_util.3 index fb04c4fbd..f4cf2557e 100644 --- a/libarchive/archive_util.3 +++ b/libarchive/archive_util.3 @@ -100,6 +100,10 @@ Copies error information from one archive to another. Returns a numeric error code (see .Xr errno 2 ) indicating the reason for the most recent error return. +Note that this can not be reliably used to detect whether an +error has occurred. +It should be used only after another libarchive function +has returned an error status. .It Fn archive_error_string Returns a textual error message suitable for display. The error message here is usually more specific than that -- 2.47.3