Skip to content

Commit

Permalink
q-dev: sanitize confirmation output
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Oct 15, 2024
1 parent 1267f3f commit 89925b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qubes/ext/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ async def confirm_device_attachment(device, frontends) -> str:
# vm names are safe to just join by spaces
proc = await asyncio.create_subprocess_shell(
" ".join(["attach-confirm", device.backend_domain.name,
device.port_id, "'" + device.description + "'", *front_names]),
device.port_id, "'" + device.description + "'",
*front_names]),
stdout=asyncio.subprocess.PIPE
)
(target_name, _) = await proc.communicate()
Expand Down

0 comments on commit 89925b0

Please sign in to comment.