From 400a88ee149bee0ebfa23a2a205290ea4f8044c2 Mon Sep 17 00:00:00 2001
From: Greg DiCristofaro <gregd@basistech.com>
Date: Thu, 30 Nov 2023 11:39:31 -0500
Subject: [PATCH] use strcasecmp for mac linux

---
 tsk/fs/fs_attrlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tsk/fs/fs_attrlist.c b/tsk/fs/fs_attrlist.c
index 40a262a3c..bac61579d 100644
--- a/tsk/fs/fs_attrlist.c
+++ b/tsk/fs/fs_attrlist.c
@@ -342,7 +342,7 @@ tsk_fs_attrlist_get_name_type(const TSK_FS_ATTRLIST * a_fs_attrlist,
                     fs_attr_ok = fs_attr_cur;
             }
 
-            else if ((name) && (fs_attr_cur->name) && fs_attr_cur->type == TSK_FS_ATTR_TYPE_NTFS_DATA && !stricmp(fs_attr_cur->name, name)) {
+            else if ((name) && (fs_attr_cur->name) && fs_attr_cur->type == TSK_FS_ATTR_TYPE_NTFS_DATA && !strcasecmp(fs_attr_cur->name, name)) {
                 // NTFS data streams should do case insensitive compare
                 // make sure we return the lowest if multiple exist
                 if ((fs_attr_ok == NULL) || (fs_attr_ok->id > fs_attr_cur->id))
-- 
GitLab