Files
macports-ports/sysutils/3mux/files/patch-TMPDIR.diff

15 lines
370 B
Diff

--- main.go.original 2021-06-27 18:46:05.000000000 +0100
+++ main.go 2021-06-27 18:55:34.000000000 +0100
@@ -34,10 +34,7 @@
const BUG_REPORT_URL = "https://github.com/aaronjanse/3mux/issues"
func init() {
- tmp := os.Getenv("TMPDIR")
- if tmp == "" {
- tmp = "/tmp"
- }
+ const tmp = "/tmp"
threemuxDir = path.Join(tmp, "3mux")
os.MkdirAll(threemuxDir, 0700)