File name truncation 3.0.2-rc1 profiles

Andrew Bartlett abartlet at samba.org
Thu Jan 22 00:53:58 GMT 2004


On Thu, 2004-01-22 at 11:33, Jeff Mandel wrote:
> After upgrading samba-2.2.8a to 3.0.2-rc1 I'm having trouble with 
> roaming profiles.
> This is running on Solaris 8
> 
> An example is one particularly bad looking file name, but there are others:
> 
> on the file system in the .ntprofile directory is a file called "3« 
> Floppy (A).lnk"
> The profile fails to load with errors to the client that the file 
> <full_path>\3 could not be accessed.
> 
> If I remove this file, the profile loads fine. I found I can just to a 
> touch "3« Floppy (A).lnk", then the profile fails to load. Try it and 
> see if it happens to you.

This is due to our *completely* bogus 'I can't convert this string'
code.  We should never return the name like that, instead we should have
mangled it, as it isn't in our unix charset.

Anyway, the fix is to convert all files into your current 'unix
charset'.  So, if that is UTF8, then rename files that are in CP850 (or
whatever you had your clients using under 2.2) into UTF8.  Iconv can
help, and there might even be some scripts people can help you with.  if
the only problem is the 'floppy' link, then just delete them, and let
them be recreated :-)

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20040122/db8322e1/attachment.bin


More information about the samba-technical mailing list