mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-18 14:34:22 +01:00
Fix '..' in resolve_path_wc
git-svn-id: https://kippo.googlecode.com/svn/trunk@75 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -60,7 +60,7 @@ class HoneyPotFilesystem(object):
|
||||
elif p[0] == '.':
|
||||
foo(p[1:], cwd)
|
||||
elif p[0] == '..':
|
||||
foo(p[1:], cwd[1:])
|
||||
foo(p[1:], cwd[:-1])
|
||||
else:
|
||||
names = [x[A_NAME] for x in self.get_path('/'.join(cwd))]
|
||||
matches = [x for x in names if fnmatch.fnmatchcase(x, p[0])]
|
||||
|
||||
Reference in New Issue
Block a user