Re: [PATCH v1] name-hash: properly fold directory names in adjust_dirname_case()
- Date: Wed, 07 Feb 2018 20:02:31 -0500
- From: David Turner <novalis@xxxxxxxxxxx>
- Subject: Re: [PATCH v1] name-hash: properly fold directory names in adjust_dirname_case()
On Wed, 2018-02-07 at 19:41 -0500, Ben Peart wrote:
> Correct the pointer arithmetic in adjust_dirname_case() so that it
> find_dir_entry() with the correct string length. Previously passing
> "dir1/foo" would pass a length of 6 instead of the correct 4. This
> resulted in
> find_dir_entry() never finding the entry and so the subsequent memcpy
> that would
> fold the name to the version with the correct case never executed.
> Add a test to validate the corrected behavior with name folding of
Looks good to me.