byobu breaks ssh-agent SSH_AUTH_SOCK
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland |
Bug Description
Binary package hint: byobu
I have "keychain" (a package) being launched in ~/.bash_profile:
It sets up environment vars for ssh-agent and gpg-agent.
However, after screen/byobu has been started (after keychain) in bash_profile, the environment is not valid anymore for at least SSH_AUTH_SOCK.
There's code in byobu-janitor:
# Establish ssh-agent socket, helps when reconnecting to a detached session
if [ -S "$SSH_AUTH_SOCK" ] && [ -w "$RUN" ]; then
rm -f "$RUN/$
ln -sf "$SSH_AUTH_SOCK" "$RUN/$
fi
The same code is present in /usr/bin/byobu, after janitor has been called.
So, we're creating a link first (in janitor), then removing it forcefully in the byobu script.
It ends up with a symlink pointing to itself, at least for myself.
This results in "ssh-add" not being able to connect to an agent. You would have to start keychain or a similar process, again.
ProblemType: Bug
Architecture: i386
Date: Fri Mar 26 20:02:19 2010
DistroRelease: Ubuntu 10.04
Package: byobu 2.65-0ubuntu1
PackageArchitec
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcVersionSign
ScreenRC:
SourcePackage: byobu
Uname: Linux 2.6.32-17-generic i686
Changed in byobu (Ubuntu): | |
importance: | Undecided → Medium |
Changed in byobu (Ubuntu): | |
status: | New → Triaged |
assignee: | nobody → Dustin Kirkland (kirkland) |
This bug was fixed in the package byobu - 2.66-0ubuntu1
---------------
byobu (2.66-0ubuntu1) lucid; urgency=low
* usr/bin/byobu, usr/bin/ byobu-janitor: ensure that the SSH_AUTH_SOCK
link is not circular, LP: #549091
-- Dustin Kirkland <email address hidden> Tue, 16 Mar 2010 23:27:30 -0500