Skip to content

Commit

Permalink
unix: do not invoke Mkfifo with a relative path in a read-only directory
Browse files Browse the repository at this point in the history
Updates golang/go#28387

Change-Id: Ibcdc3f9cb3dc43b86b7e7d3539ed592219e54aba
Reviewed-on: https://go-review.googlesource.com/c/162987
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
  • Loading branch information
Bryan C. Mills committed Feb 19, 2019
1 parent 153ac47 commit 90b0e44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions unix/syscall_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
1 change: 1 addition & 0 deletions unix/syscall_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 90b0e44

Please sign in to comment.