mirror of https://github.com/cowrie/cowrie.git
Replaced tabs with spaces
This commit is contained in:
parent
9494bf6c2a
commit
9221278682
|
@ -28,9 +28,9 @@ def recurse(root, tree, count = 0):
|
||||||
entry = [name, T_FILE, s.st_uid, s.st_gid, s.st_size, s.st_mode, \
|
entry = [name, T_FILE, s.st_uid, s.st_gid, s.st_size, s.st_mode, \
|
||||||
int(s.st_ctime), [], None, None]
|
int(s.st_ctime), [], None, None]
|
||||||
|
|
||||||
if S_ISLNK(s[ST_MODE]):
|
if S_ISLNK(s[ST_MODE]):
|
||||||
entry[A_TYPE] = T_LINK
|
entry[A_TYPE] = T_LINK
|
||||||
entry[A_TARGET] = os.path.realpath(path)
|
entry[A_TARGET] = os.path.realpath(path)
|
||||||
elif S_ISDIR(s[ST_MODE]):
|
elif S_ISDIR(s[ST_MODE]):
|
||||||
entry[A_TYPE] = T_DIR
|
entry[A_TYPE] = T_DIR
|
||||||
if not path.startswith('/proc/'):
|
if not path.startswith('/proc/'):
|
||||||
|
@ -47,7 +47,7 @@ def recurse(root, tree, count = 0):
|
||||||
entry[A_TYPE] = T_FIFO
|
entry[A_TYPE] = T_FIFO
|
||||||
else:
|
else:
|
||||||
sys.stderr.write('We should handle %s' % path)
|
sys.stderr.write('We should handle %s' % path)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
tree.append(entry)
|
tree.append(entry)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue