Thread (7 messages) 7 messages, 5 authors, 2025-10-18

Re: t7528-signed-commit-ssh.sh fails due to ssh-agent fails to start with ENAMETOOLONG

From: Jeff King <hidden>
Date: 2025-10-17 10:54:02

On Fri, Oct 17, 2025 at 06:52:49PM +0900, Lauri Tirkkonen wrote:
quoted
If I unset SSH_AUTH_SOCK in my environment, then the test consistently
fails. But I'm somewhat amazed that nobody has complained about this
before. Surely somebody somewhere (especially CI!) is running t7528
without SSH_AUTH_SOCK set in the environment. Which makes wonder if I'm
missing something.
I believe the issue surfaced only now because prior to OpenSSH 10.1,
ssh-agent would put its socket in /tmp by default, not under $HOME. See
https://www.openssh.com/txt/release-10.1
Ah, of course. That explains it perfectly, thanks. So we're going to get
lots more reports as people upgrade. :)
We saw this failure in CI on Alpine Linux and worked around by adding -T
to the ssh-agent invocation in this test, but I suppose that won't work
for earlier releases of OpenSSH.
Yeah. We could either do something like "ssh-agent -T || ssh-agent", or
we could go with "ssh-agent -a" (which has been around since 2002, but
does raise the potential relative-path issue).

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help