mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 15:19:51 +00:00
cifs: don't show domain= in mount output when domain is empty
Reported-by: Xiaoli Feng <xifeng@redhat.com> Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
This commit is contained in:
parent
c1777df1a5
commit
e55954a5f7
@ -432,7 +432,7 @@ cifs_show_options(struct seq_file *s, struct dentry *root)
|
||||
else if (tcon->ses->user_name)
|
||||
seq_show_option(s, "username", tcon->ses->user_name);
|
||||
|
||||
if (tcon->ses->domainName)
|
||||
if (tcon->ses->domainName && tcon->ses->domainName[0] != 0)
|
||||
seq_show_option(s, "domain", tcon->ses->domainName);
|
||||
|
||||
if (srcaddr->sa_family != AF_UNSPEC) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user