diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-05 13:11:37 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-05 13:17:34 +0200 |
commit | 592ac97728e091e3f126f0c05255255b565c5500 (patch) | |
tree | 78605c2cee975d5714c3804ce92ee0e004d529b4 /source4/ntvfs/posix/pvfs_acl.c | |
parent | 1ba5077e5f1db07662f895e068c505479be29b48 (diff) | |
download | samba-592ac97728e091e3f126f0c05255255b565c5500.tar.gz samba-592ac97728e091e3f126f0c05255255b565c5500.tar.xz samba-592ac97728e091e3f126f0c05255255b565c5500.zip |
s4:ntvfs: s/!= PROTOCOL_SMB2/< PROTOCOL_SMB2_02/
metze
Diffstat (limited to 'source4/ntvfs/posix/pvfs_acl.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_acl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c index 78169272e4..cbe3e4e233 100644 --- a/source4/ntvfs/posix/pvfs_acl.c +++ b/source4/ntvfs/posix/pvfs_acl.c @@ -568,7 +568,7 @@ static NTSTATUS pvfs_access_check_unix(struct pvfs_state *pvfs, return NT_STATUS_ACCESS_DENIED; } - if (pvfs->ntvfs->ctx->protocol != PROTOCOL_SMB2) { + if (pvfs->ntvfs->ctx->protocol < PROTOCOL_SMB2_02) { /* on SMB, this bit is always granted, even if not asked for */ *access_mask |= SEC_FILE_READ_ATTRIBUTE; @@ -621,7 +621,7 @@ NTSTATUS pvfs_access_check(struct pvfs_state *pvfs, /* expand the generic access bits to file specific bits */ *access_mask = pvfs_translate_mask(*access_mask); - if (pvfs->ntvfs->ctx->protocol != PROTOCOL_SMB2) { + if (pvfs->ntvfs->ctx->protocol < PROTOCOL_SMB2_02) { *access_mask &= ~SEC_FILE_READ_ATTRIBUTE; } @@ -647,7 +647,7 @@ NTSTATUS pvfs_access_check(struct pvfs_state *pvfs, status = se_access_check(sd, token, *access_mask, access_mask); talloc_free(acl); done: - if (pvfs->ntvfs->ctx->protocol != PROTOCOL_SMB2) { + if (pvfs->ntvfs->ctx->protocol < PROTOCOL_SMB2_02) { /* on SMB, this bit is always granted, even if not asked for */ *access_mask |= SEC_FILE_READ_ATTRIBUTE; @@ -745,7 +745,7 @@ NTSTATUS pvfs_access_check_create(struct pvfs_state *pvfs, *access_mask &= ~SEC_FLAG_MAXIMUM_ALLOWED; } - if (pvfs->ntvfs->ctx->protocol != PROTOCOL_SMB2) { + if (pvfs->ntvfs->ctx->protocol < PROTOCOL_SMB2_02) { /* on SMB, this bit is always granted, even if not asked for */ *access_mask |= SEC_FILE_READ_ATTRIBUTE; |