Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30878
b: refs/heads/master
c: 9312f67
h: refs/heads/master
v: v3
  • Loading branch information
Steve French committed Jun 4, 2006
1 parent f36ffb7 commit 7340d17
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 254e55ed03e2e8d23089b4a468eec2fd2e1ead9b
refs/heads/master: 9312f6754d4b2d3ce27c21b16fb92923ce92a411
6 changes: 2 additions & 4 deletions trunk/fs/cifs/cifs_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -860,8 +860,6 @@ security_flags_write(struct file *file, const char __user *buffer,
char flags_string[12];
char c;

cERROR(1,("size %ld",count)); /* BB removeme BB */

if((count < 1) || (count > 11))
return -EINVAL;

Expand All @@ -883,14 +881,14 @@ security_flags_write(struct file *file, const char __user *buffer,

flags = simple_strtoul(flags_string, NULL, 0);

cERROR(1,("sec flags 0x%x", flags)); /* BB FIXME make cFYI */
cFYI(1,("sec flags 0x%x", flags));

if(flags <= 0) {
cERROR(1,("invalid security flags %s",flags_string));
return -EINVAL;
}

if((flags & CIFSSEC_MASK) != CIFSSEC_MASK) {
if(flags & ~CIFSSEC_MASK) {
cERROR(1,("attempt to set unsupported security flags 0x%d",
flags & ~CIFSSEC_MASK));
return -EINVAL;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/cifs/cifssmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
#endif /* CIFS_WEAK_PW_HASH */
cERROR(1,("Server requests plain text password"
" but client support disabled"));

if(extended_security & CIFSSEC_MUST_NTLMV2)
server->secType = NTLMv2;
else
Expand Down
5 changes: 3 additions & 2 deletions trunk/fs/cifs/sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,10 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time,
return -EOPNOTSUPP;
#endif
wct = 10; /* lanman 2 style sessionsetup */
} else if((type == NTLM) || (type == NTLMv2)) /* NTLMv2 may retry NTLM */
} else if((type == NTLM) || (type == NTLMv2)) {
/* For NTLMv2 failures eventually may need to retry NTLM */
wct = 13; /* old style NTLM sessionsetup */
else /* same size for negotiate or auth, NTLMSSP or extended security */
} else /* same size for negotiate or auth, NTLMSSP or extended security */
wct = 12;

rc = small_smb_init_no_tc(SMB_COM_SESSION_SETUP_ANDX, wct, ses,
Expand Down

0 comments on commit 7340d17

Please sign in to comment.