work around ssh brain-damange

The control socket path passed to ssh needs to be 17 characters shorter
than the maximum unix domain socket length, because ssh appends stuff to it
to make a temporary filename. Closes: #725512

Also, take the shorter of the relative and the absolute paths to the
socket. Typically the relative path will be a lot shorter (unless
deep inside a subdirectory of the repository), and so using it will
avoid flirting with the maximum safe socket lenghts in more situations,
and so lead to less breakage if all my attempts at fixing this are
still buggy.
This commit is contained in:
Joey Hess 2013-10-06 20:43:22 -04:00
parent 990924703f
commit 6f38426cb8
2 changed files with 33 additions and 11 deletions

3
debian/changelog vendored
View file

@ -7,6 +7,9 @@ git-annex (4.20131003) UNRELEASED; urgency=low
* addurl: Better sanitization of generated filenames.
* Better sanitization of problem characters when generating URL and WORM
keys.
* The control socket path passed to ssh needs to be 17 characters
shorter than the maximum unix domain socket length, because ssh
appends stuff to it to make a temporary filename. Closes: #725512
-- Joey Hess <joeyh@debian.org> Thu, 03 Oct 2013 15:41:24 -0400