summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-06-01 21:38:46 +0200
committerSteve French <sfrench@us.ibm.com>2006-06-01 21:38:46 +0200
commit3856a9d443ee24248683c415e535f7a2b0fed0f3 (patch)
treedf609fda7681cc04f1de402861e5048a503f0fbd /fs
parent[CIFS] Support for setting up SMB sessions to legacy lanman servers part 2 (diff)
downloadlinux-3856a9d443ee24248683c415e535f7a2b0fed0f3.tar.xz
linux-3856a9d443ee24248683c415e535f7a2b0fed0f3.zip
[CIFS] Fix minor build breaks due to cifs kconfig issues
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/Kconfig2
-rw-r--r--fs/cifs/cifssmb.c11
2 files changed, 7 insertions, 6 deletions
diff --git a/fs/Kconfig b/fs/Kconfig
index c4eaacb86071..d49b2a8c0be6 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -1731,7 +1731,7 @@ config CIFS_POSIX
CIFS POSIX ACL support. If unsure, say N.
config CIFS_DEBUG2
- bool "Enable additional CIFS debugging routines
+ bool "Enable additional CIFS debugging routines"
help
Enabling this option adds a few more debugging routines
to the cifs code which slightly increases the size of
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 6b5be6d59f07..eea8967e598e 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -436,9 +436,9 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
a common dialect */
rc = -EOPNOTSUPP;
goto neg_err_exit;
- } else if((pSMBr->hdr.WordCount == 13) &&
- (pSMBr->DialectIndex == LANMAN_PROT)) {
-#ifdef CONFIG_CIFS_WEAK_PW_HASH
+#ifdef CONFIG_CIFS_WEAK_PW_HASH
+ } else if((pSMBr->hdr.WordCount == 13)
+ && (pSMBr->DialectIndex == LANMAN_PROT)) {
struct lanman_neg_rsp * rsp =
(struct lanman_neg_rsp *)pSMBr;
@@ -477,8 +477,9 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
cFYI(1,("LANMAN negotiated")); /* BB removeme BB */
#else /* weak security disabled */
- cERROR(1,("mount failed, cifs module not built with "
- "CIFS_WEAK_PW_HASH support"));
+ } else if(pSMBr->hdr.WordCount == 13)
+ cERROR(1,("mount failed, cifs module not built "
+ "with CIFS_WEAK_PW_HASH support"));
rc = -EOPNOTSUPP;
#endif /* WEAK_PW_HASH */
goto neg_err_exit;