summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2018-08-10 11:31:10 +1000
committerSteve French <stfrench@microsoft.com>2018-08-10 11:53:51 -0500
commite55954a5f7ce0e321cea9f91f4ebeb2a4e0165f4 (patch)
tree6b41e35c4137377ae01b2f6322a969d5117086a8 /fs/cifs
parentc1777df1a5d541cda918ff0450c8adcc8b69c2fd (diff)
downloadlinux-e55954a5f7ce0e321cea9f91f4ebeb2a4e0165f4.tar.gz
linux-e55954a5f7ce0e321cea9f91f4ebeb2a4e0165f4.tar.bz2
linux-e55954a5f7ce0e321cea9f91f4ebeb2a4e0165f4.zip
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>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/cifsfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index de16078e456b..7065426b3280 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -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) {