commit | b24c93358035e3c20630a45c0bcdbb45aad9707d | [log] [tgz] |
---|---|---|
author | Namjae Jeon <namjae.jeon@samsung.com> | Sun Mar 21 17:32:19 2021 +0900 |
committer | Steve French <stfrench@microsoft.com> | Mon May 10 19:15:24 2021 -0500 |
tree | f8749a6c40449914f89667abb0e169b3a9153fd0 | |
parent | 548e9ad317393b0439081454d2110f519431d5ef [diff] |
cifsd: Pass string length parameter to match_pattern() When iterating through a directory, a file's name may not be null-terminated (depending on the underlying filesystem implementation). Modify match_pattern to take the string's length into account when matching it against the request pattern. Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>