]> Cypherpunks repositories - gostls13.git/commit
os: check permissions of CopyFS copied files
authorxieyuschen <xieyuschen@gmail.com>
Mon, 30 Sep 2024 05:53:09 +0000 (13:53 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 4 Oct 2024 14:46:36 +0000 (14:46 +0000)
commiteae89f37db1ba00db7b1e6955cb7090541cb4103
treee5de2629fc739a3168b0bdba169026bb0411a2e5
parent726d898c92ed0159f283f324478d00f15419f476
os: check permissions of CopyFS copied files

CopyFS stipulates the permissions of the created files,
we should test them in the unit test.

* chmod x for testdata/x to test CopyFS for executable

* check the files permissions to ensure CopyFS follows the stipulated
  convention

Change-Id: Id13a8ad920ad0c1ff4b801dec3bfa6869cb3101f
Reviewed-on: https://go-review.googlesource.com/c/go/+/616615
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/os/os_test.go
src/os/testdata/dirfs/dir/x [changed mode: 0644->0755]