summaryrefslogtreecommitdiff
path: root/lib/fileutils.rb
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2022-06-21 09:16:20 -0500
committergit <svn-admin@ruby-lang.org>2022-06-21 23:16:24 +0900
commit2e81fd764b9046389f432181b5b3a3192621bde7 (patch)
tree3e2bce16f2989dd0ebabb1586ce0c70050503b5e /lib/fileutils.rb
parent1002998c6df5a5cc4b9dd42bee371797a131ee44 (diff)
downloadruby-2e81fd764b9046389f432181b5b3a3192621bde7.tar.gz
[ruby/fileutils] Correct method references for secure removal (https://github.com/ruby/fileutils/pull/93)
https://github.com/ruby/fileutils/commit/42c9685826
Diffstat (limited to 'lib/fileutils.rb')
-rw-r--r--lib/fileutils.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb
index a965797b39..2ec8346d13 100644
--- a/lib/fileutils.rb
+++ b/lib/fileutils.rb
@@ -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).