# HG changeset patch # User Boris Feld # Date 2018-12-26 12:44:37 # Node ID 9e593db5f1a1b08f812591439c831ace55bca321 # Parent d9b6b9ed96d832891bfbfd8b2267a411965ed9a8 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. diff --git a/mercurial/vfs.py b/mercurial/vfs.py --- a/mercurial/vfs.py +++ b/mercurial/vfs.py @@ -199,6 +199,7 @@ class abstractvfs(object): 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)