ssh: Honor GUIX_DAEMON_SOCKET on the target machine.
authorLudovic Courtès <ludo@gnu.org>
Wed, 5 May 2021 21:26:27 +0000 (23:26 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 8 May 2021 12:55:51 +0000 (14:55 +0200)
commit3270308eebe82075d2f02517c5a2b1599928495c
treecf71cdc0ea6b2abb2fa26a96df02054b06a78b54
parentdd14678b9b9843be20e2bbb98ceb30d2433dab82
ssh: Honor GUIX_DAEMON_SOCKET on the target machine.

Fixes <https://bugs.gnu.org/48240>.
Reported by Ricardo Wurmus <rekado@elephly.net>.

* guix/ssh.scm (remote-daemon-channel)[redirect]: Define
'connect-to-daemon'.  Use the same-named procedure from (guix store)
when available, and honor GUIX_DAEMON_SOCKET.
guix/ssh.scm