aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/mount_msdosfs
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2003-12-08 08:32:20 +0000
committerMax Khon <fjoe@FreeBSD.org>2003-12-08 08:32:20 +0000
commit0f4e4130e1c622d1a720a0ab762df30f111d456c (patch)
tree6ebbe6155fc751cdfa161e601e91e193cd383576 /sbin/mount_msdosfs
parentea828b0636ed21d83f74d8a8987f023e14464ce9 (diff)
downloadsrc-0f4e4130e1c622d1a720a0ab762df30f111d456c.tar.gz
src-0f4e4130e1c622d1a720a0ab762df30f111d456c.zip
Make msdosfs long filenames matching case insensitive again.
PR: 59765 Submitted by: Ryuichiro Imura <imura@ryu16.org>
Notes
Notes: svn path=/head/; revision=123293
Diffstat (limited to 'sbin/mount_msdosfs')
-rw-r--r--sbin/mount_msdosfs/mount_msdosfs.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sbin/mount_msdosfs/mount_msdosfs.c b/sbin/mount_msdosfs/mount_msdosfs.c
index dcf0b292266a..29a1f11c26e4 100644
--- a/sbin/mount_msdosfs/mount_msdosfs.c
+++ b/sbin/mount_msdosfs/mount_msdosfs.c
@@ -339,17 +339,11 @@ set_charset(struct msdosfs_args *args)
if ((args->cs_win = malloc(ICONV_CSNMAXLEN)) == NULL)
return (-1);
strncpy(args->cs_win, ENCODING_UNICODE, ICONV_CSNMAXLEN);
- error = kiconv_add_xlat16_cspair(args->cs_win, args->cs_local, 0);
- if (error)
- return (-1);
- error = kiconv_add_xlat16_cspair(args->cs_local, args->cs_win, 0);
+ error = kiconv_add_xlat16_cspairs(args->cs_win, args->cs_local);
if (error)
return (-1);
if (args->cs_dos) {
- error = kiconv_add_xlat16_cspair(args->cs_dos, args->cs_local, KICONV_FROM_UPPER);
- if (error)
- return (-1);
- error = kiconv_add_xlat16_cspair(args->cs_local, args->cs_dos, KICONV_LOWER);
+ error = kiconv_add_xlat16_cspairs(args->cs_dos, args->cs_local);
if (error)
return (-1);
} else {