From: Jesper Nilsson Date: Thu, 29 Nov 2012 16:31:16 +0000 (+0100) Subject: cifs: Add handling of blank password option X-Git-Tag: firefly_0821_release~3680^2~1489^2~24 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3c15b4cf5580658951115f85efb2dea6a1380999;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Jeff Layton Signed-off-by: Steve French --- 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 = { { Opt_user, "user=%s" }, { Opt_user, "username=%s" }, { Opt_blank_pass, "pass=" }, + { Opt_blank_pass, "password=" }, { Opt_pass, "pass=%s" }, { Opt_pass, "password=%s" }, { Opt_blank_ip, "ip=" },