The Samba-Bugzilla – Attachment 15294 Details for
Bug 14015
vfs_catia doesn't pass stat info
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 4.9 and 4.10 cherry-picked from master
bug14015-v49,v410.patch (text/plain), 6.63 KB, created by
Ralph Böhme
on 2019-07-08 11:18:54 UTC
(
hide
)
Description:
Patch for 4.9 and 4.10 cherry-picked from master
Filename:
MIME Type:
Creator:
Ralph Böhme
Created:
2019-07-08 11:18:54 UTC
Size:
6.63 KB
patch
obsolete
>From b2fe2a7801f364e1accf8253a0249829a19fc1b5 Mon Sep 17 00:00:00 2001 >From: Ralph Boehme <slow@samba.org> >Date: Thu, 27 Jun 2019 12:50:37 +0200 >Subject: [PATCH] vfs_catia: pass stat info to synthetic_smb_fname() > >This doesn't cause visible damage in vanilla Samba, but would affect downstream >consumers that add additional fields to struct smb_filename. > >For the same reason there's no test. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=14015 >RN: Ensure vfs_catia passes stat info to stacked VFS modules > >Signed-off-by: Ralph Boehme <slow@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> >(cherry picked from commit ae6dd4853e3e651f6e56ce735bcb0a2264857385) >--- > source3/modules/vfs_catia.c | 42 ++++++++++++++++++------------------- > 1 file changed, 21 insertions(+), 21 deletions(-) > >diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c >index c362be764cc..ce771a11e57 100644 >--- a/source3/modules/vfs_catia.c >+++ b/source3/modules/vfs_catia.c >@@ -193,7 +193,7 @@ static DIR *catia_opendir(vfs_handle_struct *handle, > mapped_smb_fname = synthetic_smb_fname(talloc_tos(), > name_mapped, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (mapped_smb_fname == NULL) { > TALLOC_FREE(mapped_smb_fname); >@@ -722,7 +722,7 @@ static int catia_chown(vfs_handle_struct *handle, > catia_smb_fname = synthetic_smb_fname(talloc_tos(), > name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (catia_smb_fname == NULL) { > TALLOC_FREE(name); >@@ -760,7 +760,7 @@ static int catia_lchown(vfs_handle_struct *handle, > catia_smb_fname = synthetic_smb_fname(talloc_tos(), > name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (catia_smb_fname == NULL) { > TALLOC_FREE(name); >@@ -797,7 +797,7 @@ static int catia_chmod(vfs_handle_struct *handle, > catia_smb_fname = synthetic_smb_fname(talloc_tos(), > name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (catia_smb_fname == NULL) { > TALLOC_FREE(name); >@@ -832,7 +832,7 @@ static int catia_rmdir(vfs_handle_struct *handle, > catia_smb_fname = synthetic_smb_fname(talloc_tos(), > name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (catia_smb_fname == NULL) { > TALLOC_FREE(name); >@@ -867,7 +867,7 @@ static int catia_mkdir(vfs_handle_struct *handle, > catia_smb_fname = synthetic_smb_fname(talloc_tos(), > name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (catia_smb_fname == NULL) { > TALLOC_FREE(name); >@@ -902,7 +902,7 @@ static int catia_chdir(vfs_handle_struct *handle, > catia_smb_fname = synthetic_smb_fname(talloc_tos(), > name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (catia_smb_fname == NULL) { > TALLOC_FREE(name); >@@ -968,7 +968,7 @@ catia_realpath(vfs_handle_struct *handle, > catia_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (catia_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >@@ -1001,7 +1001,7 @@ static int catia_chflags(struct vfs_handle_struct *handle, > catia_smb_fname = synthetic_smb_fname(talloc_tos(), > name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (catia_smb_fname == NULL) { > TALLOC_FREE(name); >@@ -1046,7 +1046,7 @@ catia_streaminfo(struct vfs_handle_struct *handle, > catia_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (catia_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >@@ -1126,7 +1126,7 @@ catia_get_nt_acl(struct vfs_handle_struct *handle, > mapped_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (mapped_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >@@ -1165,7 +1165,7 @@ catia_sys_acl_get_file(vfs_handle_struct *handle, > mapped_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (mapped_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >@@ -1210,7 +1210,7 @@ catia_sys_acl_set_file(vfs_handle_struct *handle, > mapped_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (mapped_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >@@ -1253,7 +1253,7 @@ catia_sys_acl_delete_def_file(vfs_handle_struct *handle, > mapped_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (mapped_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >@@ -1306,7 +1306,7 @@ catia_getxattr(vfs_handle_struct *handle, > mapped_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (mapped_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >@@ -1353,7 +1353,7 @@ catia_listxattr(vfs_handle_struct *handle, > mapped_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (mapped_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >@@ -1406,7 +1406,7 @@ catia_removexattr(vfs_handle_struct *handle, > mapped_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (mapped_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >@@ -1465,7 +1465,7 @@ catia_setxattr(vfs_handle_struct *handle, > mapped_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (mapped_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >@@ -2274,7 +2274,7 @@ static NTSTATUS catia_get_compression(vfs_handle_struct *handle, > mapped_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (mapped_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >@@ -2367,7 +2367,7 @@ static NTSTATUS catia_get_dos_attributes(struct vfs_handle_struct *handle, > mapped_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (mapped_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >@@ -2401,7 +2401,7 @@ static NTSTATUS catia_set_dos_attributes(struct vfs_handle_struct *handle, > mapped_smb_fname = synthetic_smb_fname(talloc_tos(), > mapped_name, > NULL, >- NULL, >+ &smb_fname->st, > smb_fname->flags); > if (mapped_smb_fname == NULL) { > TALLOC_FREE(mapped_name); >-- >2.21.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
jra
:
review+
Actions:
View
Attachments on
bug 14015
: 15294