diff options
author | Koichi Sasada <[email protected]> | 2024-06-11 16:13:27 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2024-06-11 17:02:27 +0900 |
commit | 6086bae5c85cc297003012afc9cf5966fc75746a (patch) | |
tree | 50e02f3dd8fe59fd9574dab0cc752b11561d0cec /coroutine/arm64/Context.S | |
parent | f0001a4fa7260d0c39e9ddba162f51c549cba2f8 (diff) |
check `SPEC_TEMP_DIR` is world-writable or not
```
1)
Dir.mktmpdir when passed a block yields the path to the passed block ERROR
ArgumentError: parent directory is world writable but not sticky: /tmp/rubytest.wlu5cs_11
/tmp/ruby/src/trunk/lib/tmpdir.rb:113:in 'Dir.mktmpdir'
/tmp/ruby/src/trunk/spec/ruby/library/tmpdir/dir/mktmpdir_spec.rb:39:in 'block (2 levels) in <top (required)>'
```
This weird error comes from world-writable (and not sticky) directory
of `SPEC_TEMP_DIR`.
This patch checks `SPEC_TEMP_DIR` is not world-writable if exists
and `File.umask` contains o+w mask.
Diffstat (limited to 'coroutine/arm64/Context.S')
0 files changed, 0 insertions, 0 deletions