diff options
author | Jeremy Allison <jra@samba.org> | 2016-02-12 10:30:10 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-02-16 19:59:24 +0100 |
commit | 616d068f0cebb8e50a855b6e30f36fccb7f5a3c8 (patch) | |
tree | 3c64bcb9015da0fd40aa0d981d51104a945c370a /examples | |
parent | 3330c79324fe8316a2d122d3f2bf47c4e2c75c0c (diff) | |
download | samba-616d068f0cebb8e50a855b6e30f36fccb7f5a3c8.tar.gz |
s3: VFS: Modify SMB_VFS_GET_NT_ACL to take a const struct smb_filename * instead of const char *
Bumps VFS version to 35.
Preparing to reduce use of lp_posix_pathnames().
Most of this is boilerplate, the only subtleties are in
the modules:
vfs_catia.c
vfs_media_harmony.c
vfs_shadow_copy2.c
vfs_unityed_media.c
Where the path is modified then passed to SMB_VFS_NEXT_GET_NT_ACL().
In these cases the change uses synthetic_smb_fname() to
create a new struct smb_filename from the modified path.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <rb@sernet.de>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/VFS/skel_opaque.c | 3 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 10 |
2 files changed, 9 insertions, 4 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index a4309d4de69..0d5571ca99e 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -667,7 +667,8 @@ static NTSTATUS skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp, } static NTSTATUS skel_get_nt_acl(vfs_handle_struct *handle, - const char *name, uint32_t security_info, + const struct smb_filename *smb_fname, + uint32_t security_info, TALLOC_CTX *mem_ctx, struct security_descriptor **ppdesc) { diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 2d1ed790cbb..fc3c8181fd9 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -794,12 +794,16 @@ static NTSTATUS skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp, } static NTSTATUS skel_get_nt_acl(vfs_handle_struct *handle, - const char *name, uint32_t security_info, + const struct smb_filename *smb_fname, + uint32_t security_info, TALLOC_CTX *mem_ctx, struct security_descriptor **ppdesc) { - return SMB_VFS_NEXT_GET_NT_ACL(handle, name, security_info, mem_ctx, - ppdesc); + return SMB_VFS_NEXT_GET_NT_ACL(handle, + smb_fname, + security_info, + mem_ctx, + ppdesc); } static NTSTATUS skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp, |