From ae3250edd01f29465480d83ba0277e1613b5cd24 Mon Sep 17 00:00:00 2001 From: Lephe Date: Sun, 4 Aug 2024 07:55:14 +0200 Subject: [PATCH] fs readdir: fix handling of BFile_Type_MainMem entries These are g*m files, not the @MainMem folder. --- src/fs/fugue/util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/fs/fugue/util.c b/src/fs/fugue/util.c index 99301ee..2759bb3 100644 --- a/src/fs/fugue/util.c +++ b/src/fs/fugue/util.c @@ -34,9 +34,6 @@ int bfile_type_to_mode_t(int bfile_type) case BFile_Type_Directory: return S_IFDIR; case BFile_Type_Dot: return S_IFDIR; case BFile_Type_DotDot: return S_IFDIR; - case BFile_Type_MainMem: return S_IFBLK; - case BFile_Type_File: return S_IFREG; - case BFile_Type_Archived: return S_IFREG; default: return S_IFREG; } } @@ -47,7 +44,7 @@ int bfile_type_to_dirent(int bfile_type) case BFile_Type_Directory: return DT_DIR; case BFile_Type_Dot: return DT_DIR; case BFile_Type_DotDot: return DT_DIR; - case BFile_Type_MainMem: return DT_BLK; + case BFile_Type_MainMem: return DT_REG; case BFile_Type_File: return DT_REG; case BFile_Type_Addin: return DT_REG; case BFile_Type_Eact: return DT_REG;