X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fcifs%2Fcifsfs.c;h=e739950ca08485543db80bee53f1021384ed0b9a;hb=5b6386419c4f78526afe1615668b6444d7b66fd7;hp=6a1119e87fbb6fb636e4d76e814574402b7dc139;hpb=b0a1ea51bda4c2bcdde460221e1772f3a4f8c44f;p=karo-tx-linux.git diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 6a1119e87fbb..e739950ca084 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -325,8 +325,11 @@ cifs_show_address(struct seq_file *s, struct TCP_Server_Info *server) static void cifs_show_security(struct seq_file *s, struct cifs_ses *ses) { - if (ses->sectype == Unspecified) + if (ses->sectype == Unspecified) { + if (ses->user_name == NULL) + seq_puts(s, ",sec=none"); return; + } seq_puts(s, ",sec=");