Skip to content

Commit

Permalink
pkg/tool/file: use 0o777 as the default Mkdir permissions
Browse files Browse the repository at this point in the history
file.Create and file.Append already default to 0o666 rather than 0o644
to rely on the user's umask, but file.Mkdir was inconsistent
in using 0o755 rather than 0o777.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I8f11fcc7bbd27bf34f78b41a3242af62f43cac07
Dispatch-Trailer: {"type":"trybot","CL":1200570,"patchset":1,"ref":"refs/changes/70/1200570/1","targetBranch":"master"}
  • Loading branch information
mvdan authored and cueckoo committed Sep 3, 2024
1 parent e321d7f commit 883a4bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/tool/file/file.cue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Mkdir: {
createParents: bool | *false

// Directory mode and permission bits (before umask).
permissions: int | *0o755
permissions: int | *0o777
}

// MkdirAll creates a directory at the specified path along with any necessary
Expand Down
4 changes: 2 additions & 2 deletions pkg/tool/file/pkg.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 883a4bd

Please sign in to comment.