From c8395ac6cfe3ee66c8fa8ad47f48353ae14ba8c4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 1 Dec 2010 17:29:05 -0800 Subject: Fix a typo - should be '&&' not '&' when checking for privileges. Jeremy. --- source3/smbd/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/open.c') 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 " -- cgit