mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
usr/bin/byobu, usr/bin/byobu-janitor: ensure that the SSH_AUTH_SOCK
link is not circular, LP: #549091
This commit is contained in:
parent
fd80487503
commit
b7f49e9fd8
3 changed files with 4 additions and 3 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -1,6 +1,7 @@
|
|||
byobu (2.66) unreleased; urgency=low
|
||||
|
||||
* UNRELEASED
|
||||
* usr/bin/byobu, usr/bin/byobu-janitor: ensure that the SSH_AUTH_SOCK
|
||||
link is not circular, LP: #549091
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 16 Mar 2010 23:27:30 -0500
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ grep -qs "^[^#]" "$HOME/.$PKG/windows" && DEFAULT_WINDOW= || DEFAULT_WINDOW="mot
|
|||
[ -x /usr/bin/tput ] && [ $(/usr/bin/tput colors) -eq 256 ] && SCREEN_TERM="-T screen-256color"
|
||||
|
||||
# Create or update ssh-agent socket
|
||||
if [ -S "$SSH_AUTH_SOCK" ] && [ -w "$RUN" ]; then
|
||||
if [ -S "$SSH_AUTH_SOCK" ] && [ ! -h "$SSH_AUTH_SOCK" ] && [ -w "$RUN" ]; then
|
||||
rm -f "$RUN/$PKG.ssh-agent"
|
||||
ln -sf "$SSH_AUTH_SOCK" "$RUN/$PKG.ssh-agent"
|
||||
fi
|
||||
|
|
|
@ -35,7 +35,7 @@ DEFAULT_PROFILE="light"
|
|||
PROFILE="$HOME/.$PKG/profile"
|
||||
|
||||
# Establish ssh-agent socket, helps when reconnecting to a detached session
|
||||
if [ -S "$SSH_AUTH_SOCK" ] && [ -w "$RUN" ]; then
|
||||
if [ -S "$SSH_AUTH_SOCK" ] && [ ! -h "$SSH_AUTH_SOCK" ] && [ -w "$RUN" ]; then
|
||||
rm -f "$RUN/$PKG.ssh-agent"
|
||||
ln -sf "$SSH_AUTH_SOCK" "$RUN/$PKG.ssh-agent"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue