diff options
author | Jeremy Allison <jra@samba.org> | 2016-03-01 16:20:25 -0800 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2016-03-03 09:04:14 +0100 |
commit | ac8fba6ef7093836eb6988e749325b69e7a7fde1 (patch) | |
tree | 576c296d7bc49192f7cb333f034d4721f075b261 /examples | |
parent | d7ca174744001fabdc32e1c334dad347bb985756 (diff) | |
download | samba-ac8fba6ef7093836eb6988e749325b69e7a7fde1.tar.gz |
VFS: Modify chmod to take a const struct smb_filename * instead of const char *
Preparing to reduce use of lp_posix_pathnames().
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 | 4 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 4ffdacc90cf..f772a9f9316 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -367,7 +367,9 @@ static int skel_unlink(vfs_handle_struct *handle, return -1; } -static int skel_chmod(vfs_handle_struct *handle, const char *path, mode_t mode) +static int skel_chmod(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + mode_t mode) { errno = ENOSYS; return -1; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 5d3ffb73391..bea2cd4272f 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -475,9 +475,11 @@ static int skel_unlink(vfs_handle_struct *handle, return SMB_VFS_NEXT_UNLINK(handle, smb_fname); } -static int skel_chmod(vfs_handle_struct *handle, const char *path, mode_t mode) +static int skel_chmod(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + mode_t mode) { - return SMB_VFS_NEXT_CHMOD(handle, path, mode); + return SMB_VFS_NEXT_CHMOD(handle, smb_fname, mode); } static int skel_fchmod(vfs_handle_struct *handle, files_struct *fsp, |