mount_smbfs and lowercase

R. Imura imura at ryu16.org
Sat Sep 13 05:26:03 PDT 2003


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


More information about the freebsd-fs mailing list