diff options
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index cf40e245fcf4..216fb625843f 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -1721,12 +1721,12 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, | |||
1721 | return -EINVAL; | 1721 | return -EINVAL; |
1722 | } | 1722 | } |
1723 | 1723 | ||
1724 | if (volume_info.username) { | 1724 | if (volume_info.nullauth) { |
1725 | cFYI(1,("null user")); | ||
1726 | volume_info.username = NULL; | ||
1727 | } else if (volume_info.username) { | ||
1725 | /* BB fixme parse for domain name here */ | 1728 | /* BB fixme parse for domain name here */ |
1726 | cFYI(1, ("Username: %s ", volume_info.username)); | 1729 | cFYI(1, ("Username: %s ", volume_info.username)); |
1727 | |||
1728 | } else if (volume_info.nullauth) { | ||
1729 | cFYI(1,("null user")); | ||
1730 | } else { | 1730 | } else { |
1731 | cifserror("No username specified"); | 1731 | cifserror("No username specified"); |
1732 | /* In userspace mount helper we can get user name from alternate | 1732 | /* In userspace mount helper we can get user name from alternate |