mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
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:
parent
94419789b7
commit
83b2aff7d4
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user