1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18: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
This commit is contained in:
Jan Orel 2022-08-22 11:10:56 +02:00 committed by GitHub
parent 906eea460a
commit 479bfd0807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -589,13 +589,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;