]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use ARCHIVE_ERRNO_FILE_FORMAT instead of EILSEQ
authorBrad King <brad.king@kitware.com>
Wed, 11 Nov 2009 14:20:26 +0000 (09:20 -0500)
committerBrad King <brad.king@kitware.com>
Wed, 11 Nov 2009 14:20:26 +0000 (09:20 -0500)
We define ARCHIVE_ERRNO_FILE_FORMAT in "archive_platform.h" for
compatibility with platforms that do not have EILSEQ.  Therefore we
should use it in "archive_write_set_format_pax.c".

SVN-Revision: 1643

libarchive/archive_write_set_format_pax.c

index 5791d90589d4e1ccf35c9434f8c844bb58504a20..f12168b6bd1808677d1ea612c1422cc2d470ee1e 100644 (file)
@@ -479,7 +479,7 @@ archive_write_pax_header(struct archive_write *a,
        path = archive_entry_pathname(entry_main);
        path_w = archive_entry_pathname_w(entry_main);
        if (path != NULL && path_w == NULL) {
-               archive_set_error(&a->archive, EILSEQ,
+               archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,
                    "Can't translate pathname '%s' to UTF-8", path);
                ret = ARCHIVE_WARN;
                hdrcharset = "BINARY";
@@ -487,7 +487,7 @@ archive_write_pax_header(struct archive_write *a,
        uname = archive_entry_uname(entry_main);
        uname_w = archive_entry_uname_w(entry_main);
        if (uname != NULL && uname_w == NULL) {
-               archive_set_error(&a->archive, EILSEQ,
+               archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,
                    "Can't translate uname '%s' to UTF-8", uname);
                ret = ARCHIVE_WARN;
                hdrcharset = "BINARY";
@@ -495,7 +495,7 @@ archive_write_pax_header(struct archive_write *a,
        gname = archive_entry_gname(entry_main);
        gname_w = archive_entry_gname_w(entry_main);
        if (gname != NULL && gname_w == NULL) {
-               archive_set_error(&a->archive, EILSEQ,
+               archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,
                    "Can't translate gname '%s' to UTF-8", gname);
                ret = ARCHIVE_WARN;
                hdrcharset = "BINARY";
@@ -509,7 +509,7 @@ archive_write_pax_header(struct archive_write *a,
                        linkpath_w = archive_entry_symlink_w(entry_main);
        }
        if (linkpath != NULL && linkpath_w == NULL) {
-               archive_set_error(&a->archive, EILSEQ,
+               archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,
                    "Can't translate linkpath '%s' to UTF-8", linkpath);
                ret = ARCHIVE_WARN;
                hdrcharset = "BINARY";