[File] Big endianess problem on s390x?

Dr. Werner Fink werner at suse.de
Mon May 18 08:01:51 EDT 2026


On 2026/05/18 11:38:07 +0200, Dr. Werner Fink wrote:
> Hi,
> 
> the test
> 
> [  133s] Running test: ../tests/efi-signature-list-sha256
> [  133s] TZ=UTC MAGIC=../magic/magic ./test -e ../tests/efi-signature-list-sha256.testfile ../tests/efi-signature-list-sha256.result
> [  133s] test: ERROR: result was (len 4)
> [  133s] data
> [  133s] expected (len 49)
> [  133s] EFI Signature List, SHA256, total size: 76 bytes
> [  133s] ../tests/efi-signature-list-sha256.testfile: data
> 
> fails on s390x 
> 

The attached patch does resolve the problem ... there are also
other way to solve that which woould require also changes in
file_parse_guid()

Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file-5.47-s390x.patch
Type: text/x-patch
Size: 649 bytes
Desc: not available
URL: <http://mailman.astron.com/pipermail/file/attachments/20260518/134ee42f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 894 bytes
Desc: not available
URL: <http://mailman.astron.com/pipermail/file/attachments/20260518/134ee42f/attachment.asc>


More information about the File mailing list