Wrong KOI8 --> 866 convertation (Bug report)
A.V.Shutko
AVShutko at mail.khstu.ru
Thu May 4 01:01:08 GMT 2000
OS : FreeBSD 3.3-RELEASE #1: Tue Feb 22 19:12:08 VLAT 2000
Compiler : gcc version 2.7.2.3
CVS-Branch : SAMBA_TNG
Version/Date : 2.5.3 / 03.05.00 9:10
Error Type : reproduceable
Short Desc. : Wrong KOI8 --> 866 convertation
Trigger : If i rename file.txt on network drive to Russian
it disappears (but I can view it on Unix disk -
its name in KOI8). All files in Russian are not
showing on smb shares.
Fix : This is because of dual filename encoding in
/smbd/vfs.c
//------------------------------------------------------------------------
{
static pstring buf;
memcpy(buf, dname, NAMLEN(ptr)+1);
THIS****** unix_to_dos(buf, True);
dname = buf;
}
AND THIS***** unix_to_dos(dname, True); // I removed this and all
work fine.
return(dname);
}
//------------------------------------------------------------------------
A.V.Shutko mailto:AVShutko at mail.khstu.ru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smb.conf
Type: application/octet-stream
Size: 3187 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-ntdom/attachments/20000504/c91985da/smb.obj
More information about the samba-ntdom
mailing list