Skip to content

Commit e41b15a

Browse files
committed
Merge: smb: client: fix regression with guest option
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6593 JIRA: https://issues.redhat.com/browse/RHEL-83858 Signed-off-by: Paulo Alcantara <paalcant@redhat.com> Approved-by: Jay Shin <jaeshin@redhat.com> Approved-by: Benjamin Coddington <bcodding@redhat.com> Approved-by: Scott Mayhew <smayhew@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Augusto Caringi <acaringi@redhat.com>
2 parents 0e7e3b2 + 57a04af commit e41b15a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fs/smb/client/fs_context.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ const struct fs_parameter_spec smb3_fs_parameters[] = {
169169
fsparam_string("username", Opt_user),
170170
fsparam_string("pass", Opt_pass),
171171
fsparam_string("password", Opt_pass),
172+
fsparam_string("pass2", Opt_pass2),
172173
fsparam_string("password2", Opt_pass2),
173174
fsparam_string("ip", Opt_ip),
174175
fsparam_string("addr", Opt_ip),
@@ -1131,6 +1132,9 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
11311132
} else if (!strcmp("user", param->key) || !strcmp("username", param->key)) {
11321133
skip_parsing = true;
11331134
opt = Opt_user;
1135+
} else if (!strcmp("pass2", param->key) || !strcmp("password2", param->key)) {
1136+
skip_parsing = true;
1137+
opt = Opt_pass2;
11341138
}
11351139
}
11361140

0 commit comments

Comments
 (0)