diff options
author | Volker Lendecke <vl@samba.org> | 2022-02-17 11:19:50 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-02-17 17:13:35 +0000 |
commit | a31ab494cfb99b42af9e05b53ab464c8514508be (patch) | |
tree | 6bf3a372bb67e99bdd5be04552a42181e3f873ec /source3 | |
parent | 826ae22c1bd923dc0e567d5728eb19278966e43c (diff) | |
download | samba-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.c | 4 |
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; } } |