The mount.cifs command print a misleading message (<string> in credential file too long) when the last line of the credential file is not \n terminated.
Created attachment 3133 [details]
The attached patch should fix the reported problem.
the bug (and the patch) is against 3.0.28 not 3.2 however the behavior should be the same.
Thanks! Pushed with slight formatting changes to 3.0 and 3.2