Skip to content

Commit

Permalink
Understand Assuan comments
Browse files Browse the repository at this point in the history
Assuan comments start with '#' and must be ignored.  Do not send them to
the client.
  • Loading branch information
DemiMarie committed Nov 15, 2024
1 parent f711eee commit 6a0b041
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions splitgpg2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,9 @@ async def handle_agent_response(self,
untrusted_line = await self.agent_reader.readline()
untrusted_line = untrusted_line.rstrip(b'\n')
self.log_io('A >>>', untrusted_line)
if untrusted_line.startswith(b'#'):
# Comment, ignore
return True
untrusted_res, untrusted_args = extract_args(untrusted_line)
if untrusted_res in (b'D', b'S'):
# passthrough to the client
Expand Down

0 comments on commit 6a0b041

Please sign in to comment.