Skip to content

Commit

Permalink
Fix socket path on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Aug 21, 2024
1 parent 3721a85 commit 37dfb3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sharness/t0015-local-node-unix-sock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ test_description="test the ipget command using a local node"
# start the local ipfs node
test_init_ipfs

# We can't use the trash dir as the full name must be longer less than 108 bytes
# long (because that's the max unix domain socket path length).
SOCKDIR="$(mktemp -d "${TMPDIR:-/tmp}ipget-sharness.XXXXXX")"
# We can't use the trash dir as the full name must be longer less than 108
# bytes long (because that's the max unix domain socket path length).
SOCKDIR="$(mktemp -d "${TMPDIR:-/tmp}/ipget-sharness.XXXXXX")"
SOCKPATH="${SOCKDIR}/sock"
SOCKADDR="/unix/${SOCKPATH}"

Expand Down

0 comments on commit 37dfb3e

Please sign in to comment.