]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: Simplify vfs_gpfs_get_real_filename_at()
authorVolker Lendecke <vl@samba.org>
Mon, 27 Oct 2025 11:25:42 +0000 (12:25 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 10 Nov 2025 13:29:30 +0000 (13:29 +0000)
The mangled case is handled in the caller

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

index 0164c3f2033501064f0fa5e5fb3f0cb49455cb03..130aa5110a8248acd54a2a98d1f7a4949d5cd6d6 100644 (file)
@@ -300,7 +300,6 @@ static NTSTATUS vfs_gpfs_get_real_filename_at(struct vfs_handle_struct *handle,
        char real_pathname[PATH_MAX+1], tmpbuf[PATH_MAX];
        size_t full_path_len;
        int buflen;
-       bool mangled;
        struct gpfs_config_data *config;
 
        SMB_VFS_HANDLE_GET_DATA(handle, config,
@@ -312,12 +311,6 @@ static NTSTATUS vfs_gpfs_get_real_filename_at(struct vfs_handle_struct *handle,
                        handle, dirfsp, name, mem_ctx, found_name);
        }
 
-       mangled = mangle_is_mangled(name, handle->conn->params);
-       if (mangled) {
-               return SMB_VFS_NEXT_GET_REAL_FILENAME_AT(
-                       handle, dirfsp, name, mem_ctx, found_name);
-       }
-
        full_path_len = full_path_tos(dirfsp->fsp_name->base_name, name,
                                      tmpbuf, sizeof(tmpbuf),
                                      &full_path, &to_free);