diff options
author | Jeremy Allison <jra@samba.org> | 2017-05-24 10:47:46 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-05-31 22:50:22 +0200 |
commit | aada94885dce29334e34c9aae32c22e7acfc1174 (patch) | |
tree | 9d8537532716da3435d583081182361d01588eae /examples | |
parent | f5dd864606d5e587b85695ea11520df31b353fb8 (diff) | |
download | samba-aada94885dce29334e34c9aae32c22e7acfc1174.tar.gz |
s3: VFS: Change SMB_VFS_SYS_ACL_SET_FILE to use const struct smb_filename * instead of const char *.
We need to migrate all pathname based VFS calls to use a struct
to finish modernising the VFS with extra timestamp and flags parameters.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/VFS/skel_opaque.c | 6 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 9 |
2 files changed, 10 insertions, 5 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 8ecd0bef473..e7158203c50 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -774,8 +774,10 @@ static int skel_sys_acl_blob_get_fd(vfs_handle_struct *handle, return -1; } -static int skel_sys_acl_set_file(vfs_handle_struct *handle, const char *name, - SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl) +static int skel_sys_acl_set_file(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + SMB_ACL_TYPE_T acltype, + SMB_ACL_T theacl) { errno = ENOSYS; return -1; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 82d3c37408c..05d67234845 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -912,10 +912,13 @@ static int skel_sys_acl_blob_get_fd(vfs_handle_struct *handle, blob_description, blob); } -static int skel_sys_acl_set_file(vfs_handle_struct *handle, const char *name, - SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl) +static int skel_sys_acl_set_file(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + SMB_ACL_TYPE_T acltype, + SMB_ACL_T theacl) { - return SMB_VFS_NEXT_SYS_ACL_SET_FILE(handle, name, acltype, theacl); + return SMB_VFS_NEXT_SYS_ACL_SET_FILE(handle, smb_fname, + acltype, theacl); } static int skel_sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, |