Compare commits

...

2 Commits

Author SHA1 Message Date
n1nj4sec 45d8bb642e fix encoding issues on ls 2023-01-19 10:13:53 +01:00
n1nj4sec 1524cd2ed2 add traceback for prod agents 2023-01-19 10:12:55 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -255,12 +255,12 @@ def set_debug(is_enabled):
global __debug
if is_enabled:
sys.tracebacklimit = 20
sys.tracebacklimit = 30
__debug = True
setattr(sys, "__debug", True)
else:
sys.tracebacklimit = 0
sys.tracebacklimit = 20
__debug = False
setattr(sys, "__debug", False)

View File

@ -64,7 +64,7 @@ def get_streams(filename):
if not NTFS_STREAMS_API_PRESENT:
return []
if type(filename) == str:
if type(filename) == bytes:
filename = filename.decode(
getfilesystemencoding())