Skip to content
Snippets Groups Projects

stream: audit path on encoded path

Merged Pierre-Yves David requested to merge topic/stable/fix-stream-windows into branch/stable
All threads resolved!
2 files
+ 91
55
Compare changes
  • Side-by-side
  • Inline
Files
2
  • 46603c00
    In 5b8f6e198a6e, we wrongly called `vfs._auditpath` on the pre-encoding path, so
    we would get abort on problem that the encoding is here to handle.
    
    So we fix the problem (easily) and update the test to cover this (with
    significantly more work).
    
    Thanks to Matt Harbison for spotting this during the freeze.
+ 2
2
@@ -476,5 +476,6 @@
<path> is the real file system path content should be written to,
<mode> is the file mode that need to be set if any.
"""
self._auditpath(path, b'wb')
real_path = self.join(path)
self._auditpath(real_path, b'wb')
self.register_file(path)
@@ -480,5 +481,4 @@
self.register_file(path)
real_path = self.join(path)
dirname, basename = util.split(real_path)
if dirname not in known_directories:
util.makedirs(dirname, self.createmode, True)
Loading