summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_read_extract.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2006-05-01 01:02:19 +0000
committerkientzle <kientzle@FreeBSD.org>2006-05-01 01:02:19 +0000
commit1dca8f1e6a2e613ec09ed21e073480144848b158 (patch)
tree4358f59d6329f51a068cd714e64404ca62ccb8c4 /lib/libarchive/archive_read_extract.c
parenta86c768d0389dbfe74c57fe82988dc138f3db93a (diff)
downloadFreeBSD-src-1dca8f1e6a2e613ec09ed21e073480144848b158.zip
FreeBSD-src-1dca8f1e6a2e613ec09ed21e073480144848b158.tar.gz
Simplify some of the wide-character handling, inspired
in part by OpenBSD's not-quite-standard-compliant standard libraries. (No loss of functionality, just minor recoding to not rely on certain "standard" facilities that weren't actually needed.)
Diffstat (limited to 'lib/libarchive/archive_read_extract.c')
-rw-r--r--lib/libarchive/archive_read_extract.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libarchive/archive_read_extract.c b/lib/libarchive/archive_read_extract.c
index 9f1b04c..aedd392 100644
--- a/lib/libarchive/archive_read_extract.c
+++ b/lib/libarchive/archive_read_extract.c
@@ -1453,16 +1453,16 @@ set_xattrs(struct archive *a, int fd, struct archive_entry *entry)
name, value, size, 0);
}
if (e == -1) {
- if (err == ENOTSUP) {
+ if (errno == ENOTSUP) {
if (!warning_done) {
warning_done = 1;
- archive_set_error(a, err,
+ archive_set_error(a, errno,
"Cannot restore extended "
"attributes on this file "
"system");
}
} else
- archive_set_error(a, err,
+ archive_set_error(a, errno,
"Failed to set extended attribute");
ret = ARCHIVE_WARN;
}
OpenPOWER on IntegriCloud