0x09 / hfsfuse

FUSE driver for HFS+ filesystems
Other
77 stars 13 forks source link

Fix binary key compare to do uint16_t comparisons. #12

Closed pteromys closed 4 years ago

pteromys commented 4 years ago

e.g. "Azide" should compare less than "Ångstrom" = {'A', 0x030a, 'n', 'g', 's', 't', 'r', 'o', 'm' }, whereas memcmp's byte-by-byte comparison on little-endian machines was comparing the low bytes first.

Really this ought to be a pull request against NetBSD—are you already in contact with them?

pteromys commented 4 years ago

Yay that was fast! Thanks!

Now attempting to upstream it as http://gnats.netbsd.org/55427