-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Marek Marczykowski-Górecki:
[...]
> I see. The server part is much more critical, so it's ok to have as it
> is now. Actually my solution also pass the data manually on the client side
> - but it uses "cat" for this:
> 
>     (echo $GIT_EXT_SERVICE $2 $3; exec cat) | qrexec-client-vm $VMNAME 
> local.Git

This unfortunately does not work if the remote simply exits. The problem
ist that cat does not detect that it's output fd is closed and therefore
still waits for input on stdin (You can observe this for example if you
try to fetch from an non existing repo).

That's the same reason why

  cat | /bin/true

blocks. While you can work around it I'm not aware of a _simple_ trick
to do it. 

What do you think of providing some way to pass a first line in
qrexec-client-vm or some wrapper. Then not everybody who implements such
simple qrexec services needs to implement their own "copier" and think
of all the corner cases.
-----BEGIN PGP SIGNATURE-----

iQIsBAEBCgAWBQJYE1c8DxxodzQyQGlwc3Vtai5kZQAKCRDkrMknimRoFjGgEACk
GtXLxxZC2fjgjrDG6u5ybOaMrc7aD8vhC+A9uKnHVTa2QR9NCnfk5ufaDuCYIMxw
ngMRkd4PTda2UlL2OYsrMB4wrgwC14+CpnCc0z8/15bOK1Mg0K0WK5cTnFX7/Xkh
8IcY63TWtsnWk333VOY1C8nfgD8D0u9GxvnWfY+69FdMC1GL8TAJJnynmPMXPupi
Jcf0AXjOD0DEDCbwNyGtkvQKRj/Aq+eBVs+6dozAlAIaIaQliGaFJE/FkmjQVDHI
2HoVP6ADzaOI/bopcv8jR30HrKczTLUTAPzlZ9j4gmI0QZ6hKQK5W8QROleU2Yim
iUMkPtyOrCUC7TN+Vf5MNDji5l/IUdeqDhrqLIcSNLHDoZX/4k8QzuZCr923wCuM
rEFuBLKq2ATQxTGTjFcmOkE/TdsskWUZvPFoqVyBVGeP5vlJk5KxR0kUHcemzdZK
10vVji5nqNsTW9zEwjAmh0tfXVzjLHRpB1bws3UM7A1X66KmNYHNKGesPuOQNhKR
pdyuqUIdK5t1l5OIfh93CsWBHAnB22HScQPcUcJzgxJDQa9I9qCZg12qJ9Gkz7Bf
i7hM38Qp8c/MmgG88lBDleR1R8QeqBOa6bbpYXc+vK4LMpuZxuo3fuqFxAFZ2t4f
9r3wgQvMbi4RZxvzFjRH4PYsM/jc/N5KMgto0zpluA==
=+ghY
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/ce7dc9bb-fbf4-8da1-112f-c536430b9575%40ipsumj.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to