##// END OF EJS Templates
vfs: makes all audited path relative...
Boris Feld -
r41122:c8006a25 default
parent child Browse files
Show More
@@ -339,6 +339,8 b' class vfs(abstractvfs):'
339
339
340 def _auditpath(self, path, mode):
340 def _auditpath(self, path, mode):
341 if self._audit:
341 if self._audit:
342 if os.path.isabs(path) and path.startswith(self.base):
343 path = os.path.relpath(path, self.base)
342 r = util.checkosfilename(path)
344 r = util.checkosfilename(path)
343 if r:
345 if r:
344 raise error.Abort("%s: %r" % (r, path))
346 raise error.Abort("%s: %r" % (r, path))
General Comments 0
You need to be logged in to leave comments. Login now