diff options
author | Steve French <smfrench@austin.rr.com> | 2005-08-14 21:55:23 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-08-14 22:27:24 (GMT) |
commit | 27876d02b30aa34bb1ad35b81ccc40c174282f31 (patch) | |
tree | ba07379df3c12bd963363d0a3205a201688a5e4d /fs/cifs/misc.c | |
parent | d024709deb4997aced6140a62e8ee82b10666c5f (diff) | |
download | linux-27876d02b30aa34bb1ad35b81ccc40c174282f31.tar.xz |
[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>
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r-- | fs/cifs/misc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index 072b4ee..20ae415 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c @@ -611,6 +611,7 @@ cifsConvertToUCS(__le16 * target, const char *source, int maxlen, src_char = source[i]; switch (src_char) { case 0: + target[j] = 0; goto ctoUCS_out; case ':': target[j] = cpu_to_le16(UNI_COLON); |