sbt / ipcsocket

IPC: Unix Domain Socket and Windows Named Pipes for Java
Other
45 stars 16 forks source link

Issue with /tmp/.sbt/ipcsocket directory permission on a multi-user environment #40

Closed MatteCarra closed 4 days ago

MatteCarra commented 3 months ago

When running for example sbtn on a given user, a temp '/tmp/.sbt/ipcsocket ' directory will be created and it will be owned by that user. Any other user will be unable to run sbtn, because he will not have write permission on that folder. The temp folder should be something like /tmp/.sbt-$USER/ipcsocket to avoid these kinds of issues. The culprit is in https://github.com/sbt/ipcsocket/blob/ee3439303e592846168a3b18f23358d3c6665949/src/main/java/org/scalasbt/ipcsocket/NativeLoader.java

eed3si9n commented 3 months ago

This makes sense. I had to make a similar change on sbt/sbt side as well - https://github.com/sbt/sbt/pull/7042