diff options
| author | Steve French <sfrench@us.ibm.com> | 2006-06-01 15:38:46 -0400 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2006-06-01 15:38:46 -0400 |
| commit | 3856a9d443ee24248683c415e535f7a2b0fed0f3 (patch) | |
| tree | df609fda7681cc04f1de402861e5048a503f0fbd | |
| parent | 7c7b25bc8e392aea781324efa771bc191377b876 (diff) | |
[CIFS] Fix minor build breaks due to cifs kconfig issues
Signed-off-by: Steve French <sfrench@us.ibm.com>
| -rw-r--r-- | fs/Kconfig | 2 | ||||
| -rw-r--r-- | fs/cifs/cifssmb.c | 11 |
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 | |||
| 1731 | CIFS POSIX ACL support. If unsure, say N. | 1731 | CIFS POSIX ACL support. If unsure, say N. |
| 1732 | 1732 | ||
| 1733 | config CIFS_DEBUG2 | 1733 | config CIFS_DEBUG2 |
| 1734 | bool "Enable additional CIFS debugging routines | 1734 | bool "Enable additional CIFS debugging routines" |
| 1735 | help | 1735 | help |
| 1736 | Enabling this option adds a few more debugging routines | 1736 | Enabling this option adds a few more debugging routines |
| 1737 | to the cifs code which slightly increases the size of | 1737 | 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) | |||
| 436 | a common dialect */ | 436 | a common dialect */ |
| 437 | rc = -EOPNOTSUPP; | 437 | rc = -EOPNOTSUPP; |
| 438 | goto neg_err_exit; | 438 | goto neg_err_exit; |
| 439 | } else if((pSMBr->hdr.WordCount == 13) && | 439 | #ifdef CONFIG_CIFS_WEAK_PW_HASH |
| 440 | (pSMBr->DialectIndex == LANMAN_PROT)) { | 440 | } else if((pSMBr->hdr.WordCount == 13) |
| 441 | #ifdef CONFIG_CIFS_WEAK_PW_HASH | 441 | && (pSMBr->DialectIndex == LANMAN_PROT)) { |
| 442 | struct lanman_neg_rsp * rsp = | 442 | struct lanman_neg_rsp * rsp = |
| 443 | (struct lanman_neg_rsp *)pSMBr; | 443 | (struct lanman_neg_rsp *)pSMBr; |
| 444 | 444 | ||
| @@ -477,8 +477,9 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses) | |||
| 477 | 477 | ||
| 478 | cFYI(1,("LANMAN negotiated")); /* BB removeme BB */ | 478 | cFYI(1,("LANMAN negotiated")); /* BB removeme BB */ |
| 479 | #else /* weak security disabled */ | 479 | #else /* weak security disabled */ |
| 480 | cERROR(1,("mount failed, cifs module not built with " | 480 | } else if(pSMBr->hdr.WordCount == 13) |
| 481 | "CIFS_WEAK_PW_HASH support")); | 481 | cERROR(1,("mount failed, cifs module not built " |
| 482 | "with CIFS_WEAK_PW_HASH support")); | ||
| 482 | rc = -EOPNOTSUPP; | 483 | rc = -EOPNOTSUPP; |
| 483 | #endif /* WEAK_PW_HASH */ | 484 | #endif /* WEAK_PW_HASH */ |
| 484 | goto neg_err_exit; | 485 | goto neg_err_exit; |
