diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-05 13:10:42 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-05 13:17:33 +0200 |
commit | 1ba5077e5f1db07662f895e068c505479be29b48 (patch) | |
tree | 7e9f32cc4453a61083a21bbe94c30f529f7c00bc /source4/ntvfs/posix/pvfs_open.c | |
parent | d9c2aaa0008d6e3f52b6e9b47366c052ab8df9f0 (diff) | |
download | samba-1ba5077e5f1db07662f895e068c505479be29b48.tar.gz samba-1ba5077e5f1db07662f895e068c505479be29b48.tar.bz2 samba-1ba5077e5f1db07662f895e068c505479be29b48.zip |
s4:ntvfs: s/== PROTOCOL_SMB2/>= PROTOCOL_SMB2_02/
metze
Diffstat (limited to 'source4/ntvfs/posix/pvfs_open.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/pvfs_open.c b/source4/ntvfs/posix/pvfs_open.c index d56bce58f7..c0f55e8e73 100644 --- a/source4/ntvfs/posix/pvfs_open.c +++ b/source4/ntvfs/posix/pvfs_open.c @@ -1284,7 +1284,7 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs, } /* what does this bit really mean?? */ - if (req->ctx->protocol == PROTOCOL_SMB2 && + if (req->ctx->protocol >= PROTOCOL_SMB2_02 && access_mask == SEC_STD_SYNCHRONIZE) { return NT_STATUS_ACCESS_DENIED; } @@ -1502,7 +1502,7 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs, * on existing files */ if (create_options & NTCREATEX_OPTIONS_DELETE_ON_CLOSE && - req->ctx->protocol == PROTOCOL_SMB2) { + req->ctx->protocol >= PROTOCOL_SMB2_02) { del_on_close = true; } else { del_on_close = false; |