1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5946: Fix parsing * in the group list (#2261)

Regression introduced by68ce7dc0

With the addition to skipws, peek() will read the next whitespace in the buffer. The logic has been changed to use the extraction operator so ws are consumed. The peek - get is now changed by >> - unget calls

(cherry picked from commit 479bfd0807fc1eaf895e694ee215e723ac07505f)
This commit is contained in:
Jan Orel 2022-08-22 11:10:56 +02:00 committed by Ruben S. Montero
parent 94419789b7
commit 83b2aff7d4
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -596,13 +596,18 @@ static int parse_auth_msg(
int tmp_gid;
bool gr_admin = false;
char c = is.peek();
char c;
is >> c;
if ( c == '*' )
{
is.get(c);
gr_admin = true;
}
else
{
is.unget();
}
is >> tmp_gid;