The unified diff between revisions [3099ff90..] and [e9aa88ea..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'unix/fs.cc'

#
#
# patch "unix/fs.cc"
#  from [1bb3dcff181451829c42a1d34c1111d486437fda]
#    to [6b71610c94a70ecabfecdcf10f0aa0d880fffc7f]
#
============================================================
--- unix/fs.cc	1bb3dcff181451829c42a1d34c1111d486437fda
+++ unix/fs.cc	6b71610c94a70ecabfecdcf10f0aa0d880fffc7f
@@ -104,3 +104,10 @@ get_path_status(any_path const & path)
       E(false, F("cannot handle special file %s") % path);
     }
 }
+
+void
+rename_clobberingly(any_path const & from, any_path const & to)
+{
+  E(!rename(from.as_external().c_str(), to.as_external().c_str()),
+    F("renaming '%s' to '%s' failed: %s") % from % to % std::strerror(errno));
+}