windows-handle-invalid-utf16-names-20081019
authorAsanka Herath <asanka@secure-endpoints.com>
Mon, 20 Oct 2008 00:17:41 +0000 (00:17 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 20 Oct 2008 00:17:41 +0000 (00:17 +0000)
commit90e4242c2d7d4ce8477061469f4840212c195080
tree01a717b79fc48c65872b6feeb15b081d8f0b449a
parent0c7d7ce3b8386a1aca6d1fc3d738c8621708eb95
windows-handle-invalid-utf16-names-20081019

LICENSE MIT
FIXES 116641

Windows will deliver to OpenAFS UTF16 strings that are not valid Unicode
and cannot be converted to UTF8.  Return bad file name errors in those
cases.

Make sure all file server strings once converted to UTF16 can be converted
back.  If not, escape the invalid portions of the string so that the
file can be accessed.
src/WINNT/afsd/cm_btree.c
src/WINNT/afsd/cm_dir.c
src/WINNT/afsd/cm_ioctl.c
src/WINNT/afsd/cm_nls.c
src/WINNT/afsd/cm_nls.h
src/WINNT/afsd/cm_vnodeops.c
src/WINNT/afsd/cm_volstat.c
src/WINNT/afsd/smb.c
src/WINNT/afsd/smb3.c