cifs: Allow passwords which begin with a delimitor
authorSachin Prabhu <sprabhu@redhat.com>
Tue, 9 Apr 2013 17:17:41 +0000 (18:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2013 04:27:26 +0000 (21:27 -0700)
commite0b4cef3446f77889a3699309a9aad5f70d9a939
treec99a47cd4eead0da7b2f21e6bccd665f7601c6b8
parentb7dba0e4be51d0924af476456d2cb0f903e8aa77
cifs: Allow passwords which begin with a delimitor

commit c369c9a4a7c82d33329d869cbaf93304cc7a0c40 upstream.

Fixes a regression in cifs_parse_mount_options where a password
which begins with a delimitor is parsed incorrectly as being a blank
password.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/connect.c