Skip to content

Commit

Permalink
osd: accept 'allow *' as an admin flag that sets allow_all
Browse files Browse the repository at this point in the history
in the OSDCap.
  • Loading branch information
Greg Farnum committed Mar 10, 2010
1 parent 9a8dd4f commit 9b3786f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/osd/OSDCaps.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9b3786f

Please sign in to comment.