From f32457e119866f060723564e73b2243207371ff8 Mon Sep 17 00:00:00 2001 From: nieben Date: Wed, 25 Sep 2024 16:49:38 +0800 Subject: [PATCH] casefold bugfix Signed-off-by: nieben --- lib/libf2fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libf2fs.c b/lib/libf2fs.c index 029204d..115208c 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -483,7 +483,7 @@ f2fs_hash_t f2fs_dentry_hash(int encoding, int casefolded, if (!buff) return -ENOMEM; dlen = table->ops->casefold(table, name, len, buff, F2FS_NAME_LEN); - if (dlen < 0) { + if (dlen <= 0) { free(buff); goto opaque_seq; }