[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:
Burdette Lamar 2022-06-21 09:16:20 -05:00 коммит произвёл git
Родитель 1002998c6d
Коммит 2e81fd764b
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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).