aboutsummaryrefslogtreecommitdiff
path: root/misc/reboot
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2019-11-11 11:36:36 -0500
committerBryan C. Mills <bcmills@google.com>2019-11-11 17:59:46 +0000
commit6375fe4b9e5656e0ac7a46752ec2a997dd62d370 (patch)
treefe4e4668db9033a892322ded97cd1fd32a99dc5d /misc/reboot
parent70be4819a47263055040d6beb5c0b1b31487f52c (diff)
downloadgo-6375fe4b9e5656e0ac7a46752ec2a997dd62d370.tar.gz
go-6375fe4b9e5656e0ac7a46752ec2a997dd62d370.zip
misc: ensure that test overlay directories are writable
Otherwise, the test cannot create new files in the directory. Updates #32407 Updates #30316 Change-Id: Ief0df94a202be92f57d458d4ab4e4daa9ec189b1 Reviewed-on: https://go-review.googlesource.com/c/go/+/206458 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'misc/reboot')
-rw-r--r--misc/reboot/overlaydir_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/reboot/overlaydir_test.go b/misc/reboot/overlaydir_test.go
index b38a8efbb9..6e77b2e97b 100644
--- a/misc/reboot/overlaydir_test.go
+++ b/misc/reboot/overlaydir_test.go
@@ -51,7 +51,7 @@ func overlayDir(dstRoot, srcRoot string) error {
// Always copy directories (don't symlink them).
// If we add a file in the overlay, we don't want to add it in the original.
if info.IsDir() {
- return os.Mkdir(dstPath, perm)
+ return os.Mkdir(dstPath, perm|0200)
}
// If the OS supports symlinks, use them instead of copying bytes.