ssh-agent clobbers LD_LIBRARY_PATH and other environment variables
Bug #47958 reported by
Anders Kaseorg
This bug affects 51 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Debian) |
New
|
Unknown
|
|||
openssh (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Since /usr/bin/ssh-agent is setgid ssh, it unsets LD_LIBRARY_PATH. This made it impossible to set this variable in my dotfiles (.gnomerc).
My solution was to write a wrapper script that prefixes the command with /usr/bin/env VAR=val ... for each variable that gets unset:
<http://
Changed in openssh: | |
status: | Unconfirmed → Confirmed |
Changed in openssh: | |
status: | Unknown → Unconfirmed |
Changed in openssh (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in openssh (Ubuntu): | |
status: | Fix Released → Confirmed |
To post a comment you must log in.
Argh!
Well, this explains why my .profile setting of LD_LIBRARY_PATH doesn't actually survive into my login.