Skip to content
Snippets Groups Projects
Commit aaf6f8e9 authored by Nikolay Shirokovskiy's avatar Nikolay Shirokovskiy Committed by Aleksandr Lyapunov
Browse files

box: fix unexpected error on granting privileges to admin

We use LuaJIT 'bit' module for bitwise operations. Due to platform
interoperability it truncates arguments to 32bit and returns signed
result. Thus on granting rights using bit.bor to admin user which
have 0xffffffff rights (from bootstrap snapshot) we get -1 as a result.
This leads to type check error given in issue later in execution.

Closes #7226

NO_DOC=minor bugfix
parent 9c87898e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment