Revoke permissions
Folder commands update selected bits in an eight-bit record; the storage tier and other status must survive changes outside their fields.
What needs to change
Repair revoke so a revoke clears exactly the bits of its mask.
Reproduce
- Compile and run the two-revoke sample with g++, then compare both printed bytes with the expected stdout.
Acceptance criteria
Your review marks · Saved in this browser. Test acceptance is tracked separately.
Notes
The file contains its headers, the Command struct, readSession, bits, grant and main. The browser compiles with g++ -std=c++23.
Input: the starting flags as 8 binary digits, then grant or revoke lines with 8-digit binary masks.