--- ruby-3.1.3/tool/ln_sr.rb.orig	2022-12-04 06:53:40.359961100 +0100
+++ ruby-3.1.3/tool/ln_sr.rb	2022-12-04 06:54:01.343228700 +0100
@@ -57,7 +57,7 @@
       end
       fu_output_message "ln -s#{options} #{s} #{d}" if verbose
       next if noop
-      remove_file d, true if force
+      FileUtils.remove_dir(d, true) if force
       File.symlink s, d
     end
     case srcs.size
