diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2012-11-29 11:31:16 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-12-05 14:27:30 -0500 |
commit | 3c15b4cf5580658951115f85efb2dea6a1380999 (patch) | |
tree | 9b1f5ccf167bb249d3173ae8af560571b5fef13b /fs | |
parent | dd446b16edd74ca525208d924d426f786dd973f8 (diff) |
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: Jesper Nilsson <jesper.nilsson@axis.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/connect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index d01c7328dbae..dec7c15d886a 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -186,6 +186,7 @@ static const match_table_t cifs_mount_option_tokens = { | |||
186 | { Opt_user, "user=%s" }, | 186 | { Opt_user, "user=%s" }, |
187 | { Opt_user, "username=%s" }, | 187 | { Opt_user, "username=%s" }, |
188 | { Opt_blank_pass, "pass=" }, | 188 | { Opt_blank_pass, "pass=" }, |
189 | { Opt_blank_pass, "password=" }, | ||
189 | { Opt_pass, "pass=%s" }, | 190 | { Opt_pass, "pass=%s" }, |
190 | { Opt_pass, "password=%s" }, | 191 | { Opt_pass, "password=%s" }, |
191 | { Opt_blank_ip, "ip=" }, | 192 | { Opt_blank_ip, "ip=" }, |