fix flags argument to add-license shell command

This commit is contained in:
Martin Michelsen
2023-10-28 16:52:56 -07:00
parent 45c2b792f7
commit c496abc2bf
2 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -24,9 +24,9 @@ struct License {
DEBUG = 0x01000000, DEBUG = 0x01000000,
MODERATOR = 0x00000007, MODERATOR = 0x00000007,
ADMINISTRATOR = 0x000000FF, ADMINISTRATOR = 0x000000FF,
ROOT = 0x010000FF, ROOT = 0x7FFFFFFF,
UNUSED_BITS = 0xFEFFFF00, UNUSED_BITS = 0x7EFFFF00,
// clang-format on // clang-format on
}; };
+1 -1
View File
@@ -336,7 +336,7 @@ Proxy session commands:\n\
l->serial_number = stoul(token.substr(7)); l->serial_number = stoul(token.substr(7));
} else if (starts_with(token, "flags=")) { } else if (starts_with(token, "flags=")) {
string mask = token.substr(11); string mask = token.substr(6);
if (mask == "normal") { if (mask == "normal") {
l->flags = 0; l->flags = 0;
} else if (mask == "mod") { } else if (mask == "mod") {