equal
deleted
inserted
replaced
82 |
82 |
83 parts.pop() |
83 parts.pop() |
84 normparts.pop() |
84 normparts.pop() |
85 prefixes = [] |
85 prefixes = [] |
86 # It's important that we check the path parts starting from the root. |
86 # It's important that we check the path parts starting from the root. |
87 # This means we won't accidentaly traverse a symlink into some other |
87 # This means we won't accidentally traverse a symlink into some other |
88 # filesystem (which is potentially expensive to access). |
88 # filesystem (which is potentially expensive to access). |
89 for i in range(len(parts)): |
89 for i in range(len(parts)): |
90 prefix = os.sep.join(parts[:i + 1]) |
90 prefix = os.sep.join(parts[:i + 1]) |
91 normprefix = os.sep.join(normparts[:i + 1]) |
91 normprefix = os.sep.join(normparts[:i + 1]) |
92 if normprefix in self.auditeddir: |
92 if normprefix in self.auditeddir: |