diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-13 15:47:35 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-13 15:49:00 +0100 |
commit | 262fc48eb9e246ddb7315f5a14e7f6f58ca987c1 (patch) | |
tree | dc3e342ead34d15db452804d445d6621afe64a5e /tests/tar_xattr_schily.c | |
parent | 7ab411dbd2cb066652f5f51a1bc6cc793b7cafad (diff) |
Better support for reading/writing non-ASCII xattr values from/to tar
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/tar_xattr_schily.c')
-rw-r--r-- | tests/tar_xattr_schily.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tar_xattr_schily.c b/tests/tar_xattr_schily.c index 6cc31f5..f562b43 100644 --- a/tests/tar_xattr_schily.c +++ b/tests/tar_xattr_schily.c @@ -54,7 +54,8 @@ int main(void) assert(hdr.xattr != NULL); assert(strcmp(hdr.xattr->key, "user.mime_type") == 0); - assert(strcmp(hdr.xattr->value, "text/plain") == 0); + assert(strcmp((const char *)hdr.xattr->value, "text/plain") == 0); + assert(hdr.xattr->value_len == 10); assert(hdr.xattr->next == NULL); clear_header(&hdr); |