Bug#711623: Re: Bug#711623: ssh-agent: Removes LD_LIBRARY_PATH from environment
On Sat, Jun 08, 2013 at 04:55:46PM +0200, Ralf Jung wrote:
> Hm, I see. Wouldn't it be possible to script this in a way that just
> ssh-agent runs without the previously set LD_LIBRARY_PATH, but the
> program it runs maintains the previous path? Something like, or
> equivalent to:
> eval `ssh-agent -s`
> the-program-to-run
Well, x11-common is welcome to implement it that way if it chooses to
and if it actually works; note that the file
/etc/X11/Xsession.d/90x11-common_ssh-agent is not actually shipped by
the openssh packages themselves, but rather by x11-common ...
See bug #573325, filed a while back for this. Note that there are
problems documented in that bug with making sure that ssh-agent has an
appropriate lifetime, so it's not just as simple as the approach you
suggest. (The approach used in the current Ubuntu development release
where ssh-agent runs as an Upstart user job fixes this, but it may be
some time before we can persuade Debian to switch to this!)
> IMHO this issue should be mentioned in the manpage as well. That's where
> I looked for any documentation about any effects on the environment, and
> found none related to this problem.
Fair enough; I've added something similar to the text in README.Debian
there for my next upload.
Cheers,
--
Colin Watson [cjwatson@debian.org]
Reply to: