DanFreed / passprompt

Since sudolikeaboss is temporarily broken, I've created a script that uses pass to nearly duplicate the functionality
4 stars 3 forks source link

password names in menu are not presented in sorted order #6

Open fjarlq opened 4 years ago

fjarlq commented 4 years ago

After upgrading my Mac filesystem from HFS+ to APFS, passprompt's menu no longer presents the password names in sorted order in the menu.

Here's why:

One consequence of this is the order in which filenames are returned when listing them using readdir(2) in the standard C library libc: HFS+ has returned filenames in lexicographic order after normalisation, whereas APFS will return filenames in order according to their hashes. I’m sure that will catch someone out.

https://eclecticlight.co/2017/07/17/apfs-ios-11-and-high-sierra-will-fix-normalisation-problems/