]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: Slightly streamline streams_xattr_renameat()
authorVolker Lendecke <vl@samba.org>
Mon, 28 Jul 2025 08:44:24 +0000 (10:44 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 2 Sep 2025 08:08:29 +0000 (08:08 +0000)
We have strequal() for this

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/modules/vfs_streams_xattr.c

index ac01cc460430a7dcd1a6ba009519e1eaf15549db..da20997a6a521dc4826f11555b2d5fbfa87cbd52 100644 (file)
@@ -659,8 +659,7 @@ static int streams_xattr_renameat(vfs_handle_struct *handle,
        }
 
        /* Don't rename if the streams are identical. */
-       if (strcasecmp_m(smb_fname_src->stream_name,
-                      smb_fname_dst->stream_name) == 0) {
+       if (strequal(smb_fname_src->stream_name, smb_fname_dst->stream_name)) {
                goto done;
        }