Date: Sat, 13 Sep 2003 21:25:43 +0900 From: "R. Imura" <imura@ryu16.org> To: anton <anton@do.ru> Cc: freebsd-fs@freebsd.org Subject: Re: mount_smbfs and lowercase Message-ID: <20030913212543.A98493@ryu16.org> In-Reply-To: <8114690253.20030912135833@do.ru>; from anton@do.ru on Fri, Sep 12, 2003 at 01:58:33PM %2B0700 References: <8114690253.20030912135833@do.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 12, 2003 at 01:58:33PM +0700, anton wrote:
> I using FreBSD-4.8
> I was mount smb file system with mount_smbfs -c l, but file and
> folder names are don't convert to lowercase, whats wrong?
It seems -c feature has been disabled.
I don't know why but you may need to un-comment the code.
Index: smbfs_subr.c
===================================================================
RCS file: /home/ncvs/src/sys/fs/smbfs/smbfs_subr.c,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 smbfs_subr.c
--- smbfs_subr.c 17 Jan 2003 08:20:26 -0000 1.1.2.2
+++ smbfs_subr.c 13 Sep 2003 12:20:41 -0000
@@ -316,10 +316,10 @@
int
smbfs_fname_tolocal(struct smb_vc *vcp, char *name, int nmlen, int caseopt)
{
-/* if (caseopt & SMB_CS_UPPER)
+ if (caseopt & SMB_CS_UPPER)
iconv_convmem(vcp->vc_toupper, name, name, nmlen);
else if (caseopt & SMB_CS_LOWER)
- iconv_convmem(vcp->vc_tolower, name, name, nmlen);*/
+ iconv_convmem(vcp->vc_tolower, name, name, nmlen);
if (vcp->vc_tolocal)
iconv_convmem(vcp->vc_tolocal, name, name, nmlen);
return 0;
- R. Imura
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030913212543.A98493>
