Fix a typo - should be '&&' not '&' when checking for privileges.
authorJeremy Allison <jra@samba.org>
Thu, 2 Dec 2010 01:29:05 +0000 (17:29 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 2 Dec 2010 01:29:05 +0000 (17:29 -0800)
Jeremy.

source3/smbd/open.c

index 85513bdd92bbdd833c881688435c3d7b48326272..80756d6641f64020889ba2fb29da12812fb8e77a 100644 (file)
@@ -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 "