Skip to content

Commit

Permalink
#2303 also remove invalid non-symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 8, 2022
1 parent b24e142 commit d30638e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2600,8 +2600,8 @@ def setup_proxy_ssh_socket(cmdline, auth_sock=os.environ.get("SSH_AUTH_SOCK")):
from xpra.scripts.server import get_ssh_agent_path
#ie: "/run/user/$UID/xpra/$DISPLAY/ssh/$UUID
agent_uuid_sockpath = get_ssh_agent_path(agent_uuid)
if os.path.islink(agent_uuid_sockpath):
if is_socket(agent_uuid_sockpath):
if os.path.exists(agent_uuid_sockpath):
if os.path.islink(agent_uuid_sockpath) and is_socket(agent_uuid_sockpath):
sshlog(f"setup_proxy_ssh_socket keeping existing valid socket {agent_uuid_sockpath!r}")
#keep the existing socket unchanged - somehow it still works?
return
Expand Down

0 comments on commit d30638e

Please sign in to comment.