aboutsummaryrefslogtreecommitdiff
path: root/sbin
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
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')
-rw-r--r--sbin/mount_cd9660/mount_cd9660.c5
-rw-r--r--sbin/mount_msdosfs/mount_msdosfs.c10
-rw-r--r--sbin/mount_ntfs/mount_ntfs.c5
-rw-r--r--sbin/mount_udf/mount_udf.c7
4 files changed, 5 insertions, 22 deletions
diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c
index 5fe727916b2f..4ac65869571f 100644
--- a/sbin/mount_cd9660/mount_cd9660.c
+++ b/sbin/mount_cd9660/mount_cd9660.c
@@ -255,10 +255,7 @@ set_charset(struct iso_args *args, const char *localcs)
strncpy(args->cs_disk, ENCODING_UNICODE, ICONV_CSNMAXLEN);
strncpy(args->cs_local, kiconv_quirkcs(localcs, KICONV_VENDOR_MICSFT),
ICONV_CSNMAXLEN);
- error = kiconv_add_xlat16_cspair(args->cs_local, args->cs_disk, 0);
- if (error)
- return (-1);
- error = kiconv_add_xlat16_cspair(args->cs_disk, args->cs_local, 0);
+ error = kiconv_add_xlat16_cspairs(args->cs_disk, args->cs_local);
if (error)
return (-1);
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 {
diff --git a/sbin/mount_ntfs/mount_ntfs.c b/sbin/mount_ntfs/mount_ntfs.c
index bf5adf3fb632..5cabb09d34c3 100644
--- a/sbin/mount_ntfs/mount_ntfs.c
+++ b/sbin/mount_ntfs/mount_ntfs.c
@@ -275,10 +275,7 @@ set_charset(struct ntfs_args *pargs)
if ((pargs->cs_ntfs = malloc(ICONV_CSNMAXLEN)) == NULL)
return (-1);
strncpy(pargs->cs_ntfs, ENCODING_UNICODE, ICONV_CSNMAXLEN);
- error = kiconv_add_xlat16_cspair(pargs->cs_local, pargs->cs_ntfs, 0);
- if (error)
- return (-1);
- error = kiconv_add_xlat16_cspair(pargs->cs_ntfs, pargs->cs_local, 0);
+ error = kiconv_add_xlat16_cspairs(pargs->cs_ntfs, pargs->cs_local);
if (error)
return (-1);
diff --git a/sbin/mount_udf/mount_udf.c b/sbin/mount_udf/mount_udf.c
index 8a4692d94093..264c24c5d5ea 100644
--- a/sbin/mount_udf/mount_udf.c
+++ b/sbin/mount_udf/mount_udf.c
@@ -172,14 +172,9 @@ set_charset(char **cs_disk, char **cs_local, const char *localcs)
return (-1);
strncpy(*cs_disk, ENCODING_UNICODE, ICONV_CSNMAXLEN);
strncpy(*cs_local, localcs, ICONV_CSNMAXLEN);
- error = kiconv_add_xlat16_cspair(*cs_local, *cs_disk, 0);
+ error = kiconv_add_xlat16_cspairs(*cs_disk, *cs_local);
if (error)
return (-1);
-#if 0
- error = kiconv_add_xlat16_cspair(*cs_disk, *cs_local, 0);
- if (error)
- return (-1);
-#endif
return (0);
}