diff options
| author | rajeshvenkataraman <rajesh_venkataraman@trimble.com> | 2018-09-23 07:49:30 -0700 |
|---|---|---|
| committer | Grzegorz Kostka <kostka.grzegorz@gmail.com> | 2018-09-26 22:22:36 +0200 |
| commit | 1aa974054274a4f59dfa59c88bb9a85461eca113 (patch) | |
| tree | 1e2f06b696787f9486f8f3a53848710a634d0437 /include | |
| parent | dc0347cc9b3ea74da062c553dbcdc541c030f114 (diff) | |
ext4_dir: fix non existing entry creation issue
Added the length of the name string a a parameter.
Using strlen() on the name string may not give the correct length
in case of paths like: /mountpoint/nonexistdir1/nonexistdir2.
Diffstat (limited to 'include')
| -rw-r--r-- | include/ext4_dir_idx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ext4_dir_idx.h b/include/ext4_dir_idx.h index 74d896b..f1c5b26 100644 --- a/include/ext4_dir_idx.h +++ b/include/ext4_dir_idx.h @@ -91,7 +91,7 @@ int ext4_dir_dx_find_entry(struct ext4_dir_search_result *result, * @return Error code */ int ext4_dir_dx_add_entry(struct ext4_inode_ref *parent, - struct ext4_inode_ref *child, const char *name); + struct ext4_inode_ref *child, const char *name, uint32_t name_len); /**@brief Add new entry to indexed directory * @param dir Directory i-node |
