Mercurial > hg
diff mercurial/vfs.py @ 41092:9e593db5f1a1
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.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 26 Dec 2018 13:44:37 +0100 |
parents | d9b6b9ed96d8 |
children | 6498f0e03526 |
line wrap: on
line diff
--- 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)