OS filesystem level bug. For fat32 volumes, after 'cd /Volumes/DRIVE', ls behaves weird Invalid argument

Number:rdar://22557267 Date Originated:Oct 17, 2016
Status:open Resolved:
Product:osx Product Version:10.10, 10.11, 10.12
Classification:OS filesystem level bug Reproducible:yes
OS filesystem level bug. Not in 10.9. Started with 10.10, still in 10.11 (and 10.12 ?)

cd /Volumes/FAT32
ls (lists just ".". If you try ls . or ls -l you get "Invalid argument")
ls . : Invalid argument

It looks like it's behaving as though "." were a symlink instead of a normal directory.
find and dualso break with the same "Invalid argument" error message.


Actually, Vlad Seghete said he was the one that filed radar rdar://22557267 with apple around Oct 17, 2016 per his posting at https://github.com/robbyrussell/oh-my-zsh/issues/4161#issuecomment-254256890 I apologize if I've duplicated another open radar, and my radar can be deleted if/when Vlad posts it (he may already have, and google and I just can't find it). And after much discussion at this link and others, most feel doubtfull that Apple will ever fix this system library bug tho it showed up in 2015 with 10.10. May be a race condition.

Note, the problem is not just with ls, but "Invalid argument" error also thrown by find, gfind, gls, du, etc. Hence a system library problem.

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!