From: Heinrich Schuchardt Date: Wed, 27 Mar 2024 08:09:27 +0000 (+0100) Subject: fs: ext4: all file paths are absolute X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20.RelPermalink%20%7D%7D?a=commitdiff_plain;h=4ed2b1af4599a36584e9195b50bbfcdf06d0f613;p=u-boot.git fs: ext4: all file paths are absolute U-Boot only knows absolute file paths. It is inconsistent to require that saving to an ext4 file system should use a leading '/' while reading does not. Remove the superfluous check. Reported-by: Patrice Chotard Signed-off-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas Tested-by: Patrice Chotard --- diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c index 365c5147c4..2ff0dca249 100644 --- a/fs/ext4/ext4_common.c +++ b/fs/ext4/ext4_common.c @@ -765,11 +765,6 @@ int ext4fs_get_parent_inode_num(const char *dirname, char *dname, int flags) struct ext2_inode *first_inode = NULL; struct ext2_inode temp_inode; - if (*dirname != '/') { - printf("Please supply Absolute path\n"); - return -1; - } - /* TODO: input validation make equivalent to linux */ depth_dirname = zalloc(strlen(dirname) + 1); if (!depth_dirname)