diff options
| author | tv <tv@krebsco.de> | 2026-11-27 18:18:24 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-30 14:22:03 +0000 |
| commit | aa33ec01df2e523483f355de5e350f89b5cef5d5 (patch) | |
| tree | 3b5d7a4559e42038dc7553fff95dbcddb6267d37 /pkgs/populate/lib/default.nix | |
| parent | 6b7b09fef16c9f90ee782c0d460a5cf8f2eac5cc (diff) | |
populate: the master connection's socket elsewhere if TMPDIR is too long
The socket, ssh.sock in populate's temporary directory, still didn't fit
into a socket address below the TMPDIR of nested nix-shells, which grows
with each of them: "unix_listener: path
/run/user/$UID/nix-shell-.../nix-shell-.../populate..../ssh.sock....
too long for Unix domain socket". If the socket's path, with the suffix
ssh adds while it sets up the connection, doesn't fit into 108 bytes,
the socket goes into a directory of its own, from mktemp, in
XDG_RUNTIME_DIR, if that's set and mktemp can make one there that fits,
else in /tmp. Everything else stays in TMPDIR.
Diffstat (limited to 'pkgs/populate/lib/default.nix')
0 files changed, 0 insertions, 0 deletions
