Messages in this thread Patch in this message | | | Date | Sun, 7 Nov 1999 13:34:16 +0100 (CET) | From | Wolfram Pienkoss <> | Subject | [patch] NLS for vfat shortnames & bugfix |
| |
Hi, I have updated my patches for the NLS translation of short file names in vfat file system for kernel 2.3.26.
The patches inclusively the following bug fix for the mountoption 'uni_xlate' are to find under http://www.bsz.shk.th.schule.de/download/linux/.
Best regards, Wolfram
diff -urdN linux-2.3.26.orig/fs/vfat/namei.c linux/fs/vfat/namei.c --- linux-2.3.26.orig/fs/vfat/namei.c Mon Aug 9 18:43:49 1999 +++ linux/fs/vfat/namei.c Sun Nov 7 10:08:25 1999 @@ -661,7 +661,7 @@ op = outname; if (nls) { for (i = 0, ip = name, op = outname, *outlen = 0; - i < len && *outlen <= 260; i++, *outlen += 1) + i < len && *outlen <= 260; *outlen += 1) { if (escape && (*ip == ':')) { if (i > len - 4) return -EINVAL; @@ -673,10 +673,12 @@ *op++ = (c1 << 4) + (c2 >> 2); *op++ = ((c2 & 0x3) << 6) + c3; ip += 4; + i += 4; } else { *op++ = nls->charset2uni[*ip].uni1; *op++ = nls->charset2uni[*ip].uni2; ip++; + i++; } } } else {
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |