File name truncation 3.0.2-rc1 profiles
Richard Sharpe
rsharpe at richardsharpe.com
Thu Jan 22 01:57:46 GMT 2004
On Thu, 22 Jan 2004, Andrew Bartlett wrote:
> 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 :-)
Hmmm, someone sent me a script to deal with these problems a long time
ago.
I wonder if I can find it.
Regards
-----
Richard Sharpe, rsharpe[at]richardsharpe.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com
More information about the samba-technical
mailing list