Fix processing of pathnames with embedded '\\' characters (0x5c) in CP932
authorJeremy Allison <jra@samba.org>
Thu, 11 Mar 2004 00:31:50 +0000 (00:31 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 11 Mar 2004 00:31:50 +0000 (00:31 +0000)
commit30c30c5ac53ec8f32a44d0b1b39cc99fe9844467
treedd0c352b0d33a1da7eba37811b7c658e7c9bd3e9
parent32d196e9bbf203855832da16eff3dee495679928
Fix processing of pathnames with embedded '\\' characters (0x5c) in CP932
character set. Because of the allowing of "broken conversions" for people
who have broken iconv libraries we can't rely on the return from convert_string()
to be valid - we must check errno instead. This is ripe for revisiting at
some stage. I prefer adding a bool parameter to all convert_string_XX varients
to specify if we will allow broken conversions or not. With "allow_broken_conversions"
set to false we could then rely on the return from convert_string rather than
checking errno.
Jeremy.
source/smbd/reply.c