diff options
author | Jeremy Allison <jra@samba.org> | 2010-12-01 17:29:05 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-12-01 17:29:05 -0800 |
commit | c8395ac6cfe3ee66c8fa8ad47f48353ae14ba8c4 (patch) | |
tree | b183888beb61f95f3fc969640819bff5c2ff6d27 | |
parent | fd38dabdcc3848a7006cb1bb2a8cf56a24ec5d66 (diff) | |
download | samba-c8395ac6cfe3ee66c8fa8ad47f48353ae14ba8c4.tar.gz samba-c8395ac6cfe3ee66c8fa8ad47f48353ae14ba8c4.tar.bz2 samba-c8395ac6cfe3ee66c8fa8ad47f48353ae14ba8c4.zip |
Fix a typo - should be '&&' not '&' when checking for privileges.
Jeremy.
-rw-r--r-- | source3/smbd/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 85513bdd92..80756d6641 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2489,7 +2489,7 @@ static NTSTATUS open_directory(connection_struct *conn, return status; } - if ((access_mask & SEC_FLAG_SYSTEM_SECURITY) & + if ((access_mask & SEC_FLAG_SYSTEM_SECURITY) && !security_token_has_privilege(get_current_nttok(conn), SEC_PRIV_SECURITY)) { DEBUG(10, ("open_directory: open on %s " |