vfs: also audit rename
authorBoris Feld <boris.feld@octobus.net>
Wed, 26 Dec 2018 13:44:37 +0100
changeset 41092 9e593db5f1a1
parent 41091 d9b6b9ed96d8
child 41093 6498f0e03526
vfs: also audit rename Renaming through the vfs is not used in many places, and none of them seems to be a security risk. However, it is still worthwhile to run the auditing on rename file to perform developer-warning level checks.
mercurial/vfs.py
--- a/mercurial/vfs.py	Wed Dec 26 13:44:23 2018 +0100
+++ b/mercurial/vfs.py	Wed Dec 26 13:44:37 2018 +0100
@@ -199,6 +199,7 @@
         checkambig=True only in limited cases (see also issue5418 and
         issue5584 for detail).
         """
+        self._auditpath(dst, 'w')
         srcpath = self.join(src)
         dstpath = self.join(dst)
         oldstat = checkambig and util.filestat.frompath(dstpath)