MPR#6627: ocamlbuild adds read permissions on _build/*.ml files even if the original file didn’t have them
Open
@gasche is already working on this.
Since Feb 24, 2017.
bug
- Dominant language
- OCaml
- Stars
- 133
- Forks
- 87
- PR merge metrics
- No merged PRs in 30d
Description
PR transferred from https://caml.inria.fr/mantis/view.php?id=6627
[original reporter: @bfontaine]
When you create a .ml file with no read permissions for group/others, by e.g. runnning chmod go-r toto.ml, then run ocamlbuild toto.native, the file is copied into _build/ but its permissions are changed, and the read permission is back for everyone.
So anyone with access on the current directory can read _build/toto.ml even if they can’t read toto.ml (except for its owner).
mkdir test && cd testtouch toto.mlchmod go-r toto.mlocamlbuild toto.native- check the access permissions on _build/toto.ml
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.