diff options
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index fd5f2b4b7582..05149862aea4 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c | |||
@@ -751,8 +751,8 @@ add_posix_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode) | |||
751 | unsigned int num = *num_iovec; | 751 | unsigned int num = *num_iovec; |
752 | 752 | ||
753 | iov[num].iov_base = create_posix_buf(mode); | 753 | iov[num].iov_base = create_posix_buf(mode); |
754 | if (mode == -1) | 754 | if (mode == ACL_NO_MODE) |
755 | cifs_dbg(VFS, "illegal mode\n"); /* BB REMOVEME */ | 755 | cifs_dbg(FYI, "illegal mode\n"); |
756 | if (iov[num].iov_base == NULL) | 756 | if (iov[num].iov_base == NULL) |
757 | return -ENOMEM; | 757 | return -ENOMEM; |
758 | iov[num].iov_len = sizeof(struct create_posix); | 758 | iov[num].iov_len = sizeof(struct create_posix); |
@@ -2521,11 +2521,8 @@ SMB2_open_init(struct cifs_tcon *tcon, struct smb_rqst *rqst, __u8 *oplock, | |||
2521 | return rc; | 2521 | return rc; |
2522 | } | 2522 | } |
2523 | 2523 | ||
2524 | /* TODO: add handling for the mode on create */ | 2524 | if ((oparms->disposition == FILE_CREATE) && |
2525 | if (oparms->disposition == FILE_CREATE) | 2525 | (oparms->mode != ACL_NO_MODE)) { |
2526 | cifs_dbg(VFS, "mode is 0x%x\n", oparms->mode); /* BB REMOVEME */ | ||
2527 | |||
2528 | if ((oparms->disposition == FILE_CREATE) && (oparms->mode != -1)) { | ||
2529 | if (n_iov > 2) { | 2526 | if (n_iov > 2) { |
2530 | struct create_context *ccontext = | 2527 | struct create_context *ccontext = |
2531 | (struct create_context *)iov[n_iov-1].iov_base; | 2528 | (struct create_context *)iov[n_iov-1].iov_base; |