Skip to content

Commit

Permalink
fix(ssh): it's always the permissions that get you
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenfo committed May 10, 2024
1 parent 58589f7 commit 22e92d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tempfork/gliderlabs/ssh/streamlocal.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ func (h *ForwardedUnixHandler) HandleSSHRequest(ctx Context, srv *Server, req *g
return false, nil
}

// TODO: find more elegant solution to permission issue
if err := os.Chmod(addr, os.FileMode(0777)); err != nil {
return false, nil
}

// The listener needs to successfully start before it can be added to
// the map, so we don't have to worry about checking for an existing
// listener as you can't listen on the same socket twice.
Expand Down

0 comments on commit 22e92d2

Please sign in to comment.