fs: exfat: Fix exfat_fs_exists() return value

The exfat_fs_exists() should return 0 in case the path does not exist,
and 1 in case the path does exist. Fix the inverted return value. This
fixes 'test -e' command with exfat.

Fixes: b86a651b64 ("fs: exfat: Add U-Boot porting layer")
Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
Marek Vasut
2025-04-13 10:55:02 +02:00
committed by Simon Glass
parent a525201bd9
commit 5aca9aa830

View File

@@ -875,11 +875,11 @@ int exfat_fs_exists(const char *filename)
err = exfat_lookup_realpath(&ctxt.ef, &node, filename);
if (err)
return err;
return 0;
exfat_put_node(&ctxt.ef, node);
return 0;
return 1;
}
int exfat_fs_size(const char *filename, loff_t *size)