mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
virnetsocket: pass XAUTORITY for ssh connection
When spawning an ssh connection, the environment variables DISPLAY, SSH_ASKPASS, ... are passed. However XAUTHORITY, which is necessary if the .Xauthority is in a non default place, was not passed. Signed-off-by: Christian Franke <nobody@nowhere.ws>
This commit is contained in:
parent
8078a90a24
commit
d360795d60
1
AUTHORS
1
AUTHORS
@ -209,6 +209,7 @@ Patches have also been contributed by:
|
||||
Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
|
||||
Chang Liu <lingjiao.lc@taobao.com>
|
||||
Lorin Hochstein <lorin@isi.edu>
|
||||
Christian Franke <nobody@nowhere.ws>
|
||||
|
||||
[....send patches to get your name here....]
|
||||
|
||||
|
@ -628,6 +628,7 @@ int virNetSocketNewConnectSSH(const char *nodename,
|
||||
virCommandAddEnvPass(cmd, "SSH_AUTH_SOCK");
|
||||
virCommandAddEnvPass(cmd, "SSH_ASKPASS");
|
||||
virCommandAddEnvPass(cmd, "DISPLAY");
|
||||
virCommandAddEnvPass(cmd, "XAUTHORITY");
|
||||
virCommandClearCaps(cmd);
|
||||
|
||||
if (service)
|
||||
|
Loading…
x
Reference in New Issue
Block a user