mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-01 17:12:11 +00:00
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 <patrice.chotard@foss.st.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
This commit is contained in:
parent
d2986567b2
commit
4ed2b1af45
1 changed files with 0 additions and 5 deletions
|
@ -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 *first_inode = NULL;
|
||||||
struct ext2_inode temp_inode;
|
struct ext2_inode temp_inode;
|
||||||
|
|
||||||
if (*dirname != '/') {
|
|
||||||
printf("Please supply Absolute path\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO: input validation make equivalent to linux */
|
/* TODO: input validation make equivalent to linux */
|
||||||
depth_dirname = zalloc(strlen(dirname) + 1);
|
depth_dirname = zalloc(strlen(dirname) + 1);
|
||||||
if (!depth_dirname)
|
if (!depth_dirname)
|
||||||
|
|
Loading…
Add table
Reference in a new issue