From efdbc5850111f361aa285bc95037a3afb43740b9 Mon Sep 17 00:00:00 2001 From: Ann Priestman Date: Mon, 14 Nov 2016 09:46:44 -0500 Subject: [PATCH] Use the last end parentheses in normalize_db_entry instead of the first occurrence. Fixes bug for file names containing parentheses. --- test/script/tskdbdiff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/script/tskdbdiff.py b/test/script/tskdbdiff.py index 89bbcbfd2d..d44274b57d 100755 --- a/test/script/tskdbdiff.py +++ b/test/script/tskdbdiff.py @@ -357,7 +357,7 @@ def normalize_db_entry(line, table): layout_index = line.find('INSERT INTO "tsk_file_layout"') data_source_info_index = line.find('INSERT INTO "data_source_info"') ingest_job_index = line.find('INSERT INTO "ingest_jobs"') - parens = line[line.find('(') + 1 : line.find(')')] + parens = line[line.find('(') + 1 : line.rfind(')')] fields_list = parens.replace(" ", "").split(',') # remove object ID