Skip to content

Commit 6a0b041

Browse files
committed
Understand Assuan comments
Assuan comments start with '#' and must be ignored. Do not send them to the client.
1 parent f711eee commit 6a0b041

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

splitgpg2/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,9 @@ async def handle_agent_response(self,
10571057
untrusted_line = await self.agent_reader.readline()
10581058
untrusted_line = untrusted_line.rstrip(b'\n')
10591059
self.log_io('A >>>', untrusted_line)
1060+
if untrusted_line.startswith(b'#'):
1061+
# Comment, ignore
1062+
return True
10601063
untrusted_res, untrusted_args = extract_args(untrusted_line)
10611064
if untrusted_res in (b'D', b'S'):
10621065
# passthrough to the client

0 commit comments

Comments
 (0)