From 90b0e4468f9980bf79a2290394adaf7f045c5d24 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Tue, 19 Feb 2019 15:22:12 -0500 Subject: [PATCH] unix: do not invoke Mkfifo with a relative path in a read-only directory Updates golang/go#28387 Change-Id: Ibcdc3f9cb3dc43b86b7e7d3539ed592219e54aba Reviewed-on: https://go-review.googlesource.com/c/162987 Run-TryBot: Bryan C. Mills Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- unix/syscall_linux_test.go | 1 + unix/syscall_unix_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/unix/syscall_linux_test.go b/unix/syscall_linux_test.go index 3d2805bb..3c3bd816 100644 --- a/unix/syscall_linux_test.go +++ b/unix/syscall_linux_test.go @@ -52,6 +52,7 @@ func TestPpoll(t *testing.T) { t.Skip("mkfifo syscall is not available on android, skipping test") } + defer chtmpdir(t)() f, cleanup := mktmpfifo(t) defer cleanup() diff --git a/unix/syscall_unix_test.go b/unix/syscall_unix_test.go index ab65ce65..7adc3a24 100644 --- a/unix/syscall_unix_test.go +++ b/unix/syscall_unix_test.go @@ -426,6 +426,7 @@ func TestPoll(t *testing.T) { t.Skip("mkfifo syscall is not available on android and iOS, skipping test") } + defer chtmpdir(t)() f, cleanup := mktmpfifo(t) defer cleanup()