diff options
author | Jeremy Evans <code@jeremyevans.net> | 2023-01-16 13:29:43 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2023-03-24 11:18:57 -0700 |
commit | 466ca7ae205126c7cac83735db887d69e293f816 (patch) | |
tree | 2d2598ac52e1853f6afb8ddd0b1337616fd2647d /NEWS.md | |
parent | 5d6579bd9129cfbd62702fb42b249338807a34a2 (diff) | |
download | ruby-466ca7ae205126c7cac83735db887d69e293f816.tar.gz |
Add Dir.fchdir
This is useful for passing directory file descriptors over UNIX
sockets or to child processes to avoid TOCTOU vulnerabilities.
The implementation follows the Dir.chdir code.
This will raise NotImplementedError on platforms not supporting
both fchdir and dirfd.
Implements [Feature #19347]
Diffstat (limited to 'NEWS.md')
-rw-r--r-- | NEWS.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -15,6 +15,11 @@ Note: We're only listing outstanding class updates. * `Array#pack` now raises ArgumentError for unknown directives. [[Bug #19150]] +* Dir + + * `Dir.fchdir` added for changing the directory to the directory specified + by the provided directory file descriptor. [[Feature #19347]] + * String * `String#unpack` now raises ArgumentError for unknown directives. [[Bug #19150]] @@ -65,3 +70,4 @@ changelog for details of the default gems or bundled gems. [Bug #19150]: https://bugs.ruby-lang.org/issues/19150 [Feature #19314]: https://bugs.ruby-lang.org/issues/19314 +[Feature #19347]: https://bugs.ruby-lang.org/issues/19347 |