Commit 3c15b4cf authored by Jesper Nilsson's avatar Jesper Nilsson Committed by Steve French

cifs: Add handling of blank password option

The option to have a blank "pass=" already exists, and with
a password specified both "pass=%s" and "password=%s" are supported.
Also, both blank "user=" and "username=" are supported, making
"password=" the odd man out.
Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
Acked-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent dd446b16
...@@ -186,6 +186,7 @@ static const match_table_t cifs_mount_option_tokens = { ...@@ -186,6 +186,7 @@ static const match_table_t cifs_mount_option_tokens = {
{ Opt_user, "user=%s" }, { Opt_user, "user=%s" },
{ Opt_user, "username=%s" }, { Opt_user, "username=%s" },
{ Opt_blank_pass, "pass=" }, { Opt_blank_pass, "pass=" },
{ Opt_blank_pass, "password=" },
{ Opt_pass, "pass=%s" }, { Opt_pass, "pass=%s" },
{ Opt_pass, "password=%s" }, { Opt_pass, "password=%s" },
{ Opt_blank_ip, "ip=" }, { Opt_blank_ip, "ip=" },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment