summaryrefslogtreecommitdiff
path: root/include/ruby/internal/arithmetic
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2023-01-16 13:29:43 -0800
committerJeremy Evans <code@jeremyevans.net>2023-03-24 11:18:57 -0700
commit466ca7ae205126c7cac83735db887d69e293f816 (patch)
tree2d2598ac52e1853f6afb8ddd0b1337616fd2647d /include/ruby/internal/arithmetic
parent5d6579bd9129cfbd62702fb42b249338807a34a2 (diff)
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]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7135
Diffstat (limited to 'include/ruby/internal/arithmetic')
0 files changed, 0 insertions, 0 deletions