summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2022-02-17 11:19:50 +0100
committerJeremy Allison <jra@samba.org>2022-02-17 17:13:35 +0000
commita31ab494cfb99b42af9e05b53ab464c8514508be (patch)
tree6bf3a372bb67e99bdd5be04552a42181e3f873ec /source3
parent826ae22c1bd923dc0e567d5728eb19278966e43c (diff)
downloadsamba-a31ab494cfb99b42af9e05b53ab464c8514508be.tar.gz
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>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_prealloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/modules/vfs_prealloc.c b/source3/modules/vfs_prealloc.c
index c21fec6243d..467f619b8df 100644
--- a/source3/modules/vfs_prealloc.c
+++ b/source3/modules/vfs_prealloc.c
@@ -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;
}
}