[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] virnetsocket: pass XAUTORITY for ssh connection



On Mon, Nov 28, 2011 at 01:15:25PM +0100, Christian Franke wrote:
> When spawning an ssh connection, the environment variables
> DISPLAY, SSH_ASKPASS, ... are passed. However XAUTHORITY,
> which is neccessary if the .Xauthority is in a non default
> place, was not passed.
> 
> Signed-off-by: Christian Franke <nobody nowhere ws>
> ---
>  src/rpc/virnetsocket.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/src/rpc/virnetsocket.c b/src/rpc/virnetsocket.c
> index b733095..2747f66 100644
> --- a/src/rpc/virnetsocket.c
> +++ b/src/rpc/virnetsocket.c
> @@ -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)

ACK


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]