From c6e74954541e9a25f36a047215007da37ff69496 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 9 Mar 2010 14:12:45 -0800 Subject: [PATCH] mon: Accept 'allow *' as an admin flag that sets allow_all in MonCaps. --- src/mon/MonCaps.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mon/MonCaps.cc b/src/mon/MonCaps.cc index 00048945e7e53..47d69ee5df362 100644 --- a/src/mon/MonCaps.cc +++ b/src/mon/MonCaps.cc @@ -129,7 +129,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) { -- 2.39.5