Comment 12 for bug 260396

Revision history for this message
Baldvin Kovács (baldvin-kovacs) wrote :

I've debugged it, and found the bug, just posted the patch to https://bugzilla.samba.org/show_bug.cgi?id=6767 . It is a one-liner, in cifsConvertToUCS the return statement is incorrect:

--- orig/linux-2.6.32/fs/cifs/misc.c 2009-12-03 04:51:21.000000000 +0100
+++ linux-2.6.32/fs/cifs/misc.c 2011-10-09 22:25:10.767951322 +0200
@@ -713,7 +713,7 @@
     }

 ctoUCS_out:
- return i;
+ return j;
 }

 void

Best,
Baldvin