osd: accept 'allow *' as an admin flag that sets allow_all

in the OSDCap.
This commit is contained in:
Greg Farnum 2010-03-09 16:01:38 -08:00
parent 9a8dd4f82b
commit 9b3786f6c4

View File

@ -101,7 +101,10 @@ do { \
} while (0)
if (get_next_token(s, pos, token)) {
if (token.compare("=") == 0) {
if (token.compare("*") == 0) { //allow all operations
ASSERT_STATE(op_allow);
allow_all = true;
} else if (token.compare("=") == 0) {
ASSERT_STATE(any_cmd);
got_eq = true;
} else if (token.compare("allow") == 0) {