Show More
@@ -252,9 +252,9 b' class vfs(abstractvfs):' | |||||
252 | def _setmustaudit(self, onoff): |
|
252 | def _setmustaudit(self, onoff): | |
253 | self._audit = onoff |
|
253 | self._audit = onoff | |
254 | if onoff: |
|
254 | if onoff: | |
255 |
self.audit |
|
255 | self.audit = pathauditor(self.base) | |
256 | else: |
|
256 | else: | |
257 |
self.audit |
|
257 | self.audit = util.always | |
258 |
|
258 | |||
259 | mustaudit = property(_getmustaudit, _setmustaudit) |
|
259 | mustaudit = property(_getmustaudit, _setmustaudit) | |
260 |
|
260 | |||
@@ -276,7 +276,7 b' class vfs(abstractvfs):' | |||||
276 | r = util.checkosfilename(path) |
|
276 | r = util.checkosfilename(path) | |
277 | if r: |
|
277 | if r: | |
278 | raise util.Abort("%s: %r" % (r, path)) |
|
278 | raise util.Abort("%s: %r" % (r, path)) | |
279 |
self.audit |
|
279 | self.audit(path) | |
280 | f = self.join(path) |
|
280 | f = self.join(path) | |
281 |
|
281 | |||
282 | if not text and "b" not in mode: |
|
282 | if not text and "b" not in mode: | |
@@ -321,7 +321,7 b' class vfs(abstractvfs):' | |||||
321 | return fp |
|
321 | return fp | |
322 |
|
322 | |||
323 | def symlink(self, src, dst): |
|
323 | def symlink(self, src, dst): | |
324 |
self.audit |
|
324 | self.audit(dst) | |
325 | linkname = self.join(dst) |
|
325 | linkname = self.join(dst) | |
326 | try: |
|
326 | try: | |
327 | os.unlink(linkname) |
|
327 | os.unlink(linkname) | |
@@ -341,9 +341,6 b' class vfs(abstractvfs):' | |||||
341 | else: |
|
341 | else: | |
342 | self.write(dst, src) |
|
342 | self.write(dst, src) | |
343 |
|
343 | |||
344 | def audit(self, path): |
|
|||
345 | self.auditor(path) |
|
|||
346 |
|
||||
347 | def join(self, path): |
|
344 | def join(self, path): | |
348 | if path: |
|
345 | if path: | |
349 | return os.path.join(self.base, path) |
|
346 | return os.path.join(self.base, path) |
General Comments 0
You need to be logged in to leave comments.
Login now