mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/fileutils] Correct method references for secure removal (https://github.com/ruby/fileutils/pull/93)
https://github.com/ruby/fileutils/commit/42c9685826
This commit is contained in:
parent
1002998c6d
commit
2e81fd764b
1 changed files with 3 additions and 3 deletions
|
@ -166,9 +166,9 @@ end
|
|||
# \Method \FileUtils.remove_entry_secure removes securely
|
||||
# by applying a special pre-process:
|
||||
#
|
||||
# - If the target path points to a directory, this method uses
|
||||
# {chown(2)}[https://man7.org/linux/man-pages/man2/chown.2.html]
|
||||
# and {chmod(2)}[https://man7.org/linux/man-pages/man2/chmod.2.html]
|
||||
# - If the target path points to a directory, this method uses methods
|
||||
# {File#chown}[https://docs.ruby-lang.org/en/master/File.html#method-i-chown]
|
||||
# and {File#chmod}[https://docs.ruby-lang.org/en/master/File.html#method-i-chmod]
|
||||
# in removing directories.
|
||||
# - The owner of the target directory should be either the current process
|
||||
# or the super user (root).
|
||||
|
|
Loading…
Add table
Reference in a new issue