Created attachment 15600 [details] Fix list dir with nocase Steps to Reproduce for bug: client# mount //X.X.X.X/C\$ /tmp/test_data -o 'username=*****,pass=***' client# touch /tmp/test_data/$(echo -e '\xf0\x9d\x9f\xa3') client# umount /tmp/test_data client# mount //X.X.X.X/C\$ /tmp/test_data -o 'username=*****,pass=***,nocase' client# ls -1i /tmp/test_data /bin/ls: cannot access '/tmp/test_data/1': Invalid argument ? 1 Fixed it by use raw bytes to hash if we can't convert the character. Proposed patch - in attachment
There is a problem with copying files with surrogate characters at the filename and the 'nocase' option: root@kgstretch:/usr/src# cp -rf /tmp/test_data/surrogate /tmp/test_data/surrogate_copy cp: skipping file '/tmp/test_data/surrogate/DF88-D883_surrogate_
Created attachment 15615 [details] Fix list dir and copy with nocase Fixed compare