From 2e81fd764b9046389f432181b5b3a3192621bde7 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Tue, 21 Jun 2022 09:16:20 -0500 Subject: [PATCH] [ruby/fileutils] Correct method references for secure removal (https://github.com/ruby/fileutils/pull/93) https://github.com/ruby/fileutils/commit/42c9685826 --- lib/fileutils.rb | 6 +++--- 1 file 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).