mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[PATCH] CIFS: Fix path name conversion for long filenames
Fix path name conversion for long filenames when mapchars mount option was specified at mount time. Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
d024709deb
commit
27876d02b3
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Version 1.35
|
||||||
|
------------
|
||||||
|
Add writepage performance improvements. Fix path name conversions
|
||||||
|
for long filenames on mounts which were done with "mapchars" mount option
|
||||||
|
specified.
|
||||||
|
|
||||||
Version 1.34
|
Version 1.34
|
||||||
------------
|
------------
|
||||||
Fix error mapping of the TOO_MANY_LINKS (hardlinks) case.
|
Fix error mapping of the TOO_MANY_LINKS (hardlinks) case.
|
||||||
|
|
|
@ -611,6 +611,7 @@ cifsConvertToUCS(__le16 * target, const char *source, int maxlen,
|
||||||
src_char = source[i];
|
src_char = source[i];
|
||||||
switch (src_char) {
|
switch (src_char) {
|
||||||
case 0:
|
case 0:
|
||||||
|
target[j] = 0;
|
||||||
goto ctoUCS_out;
|
goto ctoUCS_out;
|
||||||
case ':':
|
case ':':
|
||||||
target[j] = cpu_to_le16(UNI_COLON);
|
target[j] = cpu_to_le16(UNI_COLON);
|
||||||
|
|
Loading…
Reference in a new issue