The illegal character set in Windows filenames is larger than that of POSIX (which only forbids forward slash). Recognize the remapped characters, and remap them on the way out.
Created attachment 1134 [details] test patch for remapping illegal chars If feedback is good on this - I will code it. I need to know whether it is sufficient to make this feature a a) configure option (so it has to be explicitly built in) or b) whether it should be a /proc/fs/cifs runtime config option or c) both It could also be made a mount option but that hits a lot more code - but that could also be done.
*** Bug 2568 has been marked as a duplicate of this bug. ***
Created attachment 1135 [details] revised version of patch (to fix accidental mapping of slash in \\server\share) Turns out we can not map slash either (without more work on the patch) since slash is in share name
1st part http://cifs.bkbits.net:8080/linux-2.5cifs/gnupatch@4250bbcbPSkXcU2T_ZV808KzyzpLqg 2nd part http://cifs.bkbits.net:8080/linux-2.5cifs/gnupatch@4254b806_RdGWJqoKe3vkf2Ed0X3_A 3rd part http://cifs.bkbits.net:8080/linux-2.5cifs/gnupatch@4255fd3a1I9WAFEXnUEtEw1WN-_1VA