Skip to content

Commit

Permalink
B #5946: Fix parsing * in the group list (#2261)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xorel authored Aug 22, 2022
1 parent 906eea4 commit 479bfd0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/um/UserPool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 479bfd0

Please sign in to comment.