]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
b5465a33856ba8d7ea52e3bc445f6c6ca4839a17
[thirdparty/openembedded/openembedded-core-contrib.git] /
1 libarchive: Ignore ENOSYS error when setting up xattrs. (Closes: #588925)
2
3 Modestas Vainius found out that HPPA returns errno ENOSYS
4 on listxattrs. Currently, ENOTSUP is ignored so we'll do the
5 same for ENOSYS as well.
6
7 For full debug info about this see Modestas Vainius awesome
8 report at:
9
10 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588925#10
11
12 Upstream-Status: Pending
13
14 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
15
16 diff --git a/libarchive/archive_read_disk_entry_from_file.c b/libarchive/archive_read_disk_entry_from_file.c
17 index 27671df..c49e755 100644
18 --- a/libarchive/archive_read_disk_entry_from_file.c
19 +++ b/libarchive/archive_read_disk_entry_from_file.c
20 @@ -398,7 +398,7 @@ setup_xattrs(struct archive_read_disk *a,
21 list_size = listxattr(path, NULL, 0);
22
23 if (list_size == -1) {
24 - if (errno == ENOTSUP)
25 + if (errno == ENOTSUP || errno == ENOSYS)
26 return (ARCHIVE_OK);
27 archive_set_error(&a->archive, errno,
28 "Couldn't list extended attributes");
29 --
30 1.7.1
31