mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue