From: Volker Lendecke Date: Mon, 27 Oct 2025 11:25:42 +0000 (+0100) Subject: vfs: Simplify vfs_gpfs_get_real_filename_at() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fda76086515f7818e38d5b40510ed4bf8d6a7120;p=thirdparty%2Fsamba.git vfs: Simplify vfs_gpfs_get_real_filename_at() The mangled case is handled in the caller Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 0164c3f2033..130aa5110a8 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -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);