From ac8f80039309bb9de4dbf8daaebbe7cad8b7b187 Mon Sep 17 00:00:00 2001
From: Brian Carrier <carrier@sleuthkit.org>
Date: Mon, 1 Oct 2018 13:51:27 -0400
Subject: [PATCH] Updated for situation of to power of 0

---
 tsk/fs/ext2fs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tsk/fs/ext2fs.c b/tsk/fs/ext2fs.c
index 011a8b733..93b4d06a3 100644
--- a/tsk/fs/ext2fs.c
+++ b/tsk/fs/ext2fs.c
@@ -69,7 +69,8 @@ test_root(uint32_t a, uint32_t b)
         return 0;
     }
     else if (a == 1) {
-        return (b == 1);
+        // anything to power of 0 is 1
+        return 1;
     }
     else if (b == 1) {
         return 0;
-- 
GitLab