Skip to content

Commit 27876d0

Browse files
Steve FrenchLinus Torvalds
authored andcommitted
[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>
1 parent d024709 commit 27876d0

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎fs/cifs/CHANGES‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Version 1.35
2+
------------
3+
Add writepage performance improvements. Fix path name conversions
4+
for long filenames on mounts which were done with "mapchars" mount option
5+
specified.
6+
17
Version 1.34
28
------------
39
Fix error mapping of the TOO_MANY_LINKS (hardlinks) case.

‎fs/cifs/misc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ cifsConvertToUCS(__le16 * target, const char *source, int maxlen,
611611
src_char = source[i];
612612
switch (src_char) {
613613
case 0:
614+
target[j] = 0;
614615
goto ctoUCS_out;
615616
case ':':
616617
target[j] = cpu_to_le16(UNI_COLON);

0 commit comments

Comments
 (0)