mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
vfs: Don't go through strnorm(..., CASE_LOWER)
With a fixed CASE_LOWER we should go directly to the lowerlevel call, this makes it more obvious to me. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
826ae22c1b
commit
a31ab494cf
@ -129,8 +129,10 @@ static int prealloc_openat(struct vfs_handle_struct* handle,
|
||||
dot = strrchr(smb_fname->base_name, '.');
|
||||
if (dot && *++dot) {
|
||||
if (strlen(dot) < sizeof(fext)) {
|
||||
bool ok;
|
||||
strncpy(fext, dot, sizeof(fext));
|
||||
if (!strnorm(fext, CASE_LOWER)) {
|
||||
ok = strlower_m(fext);
|
||||
if (!ok);
|
||||
goto normal_open;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user