diff options
author | Jeremy Allison <jra@samba.org> | 2016-03-03 11:54:23 -0800 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2016-03-05 09:39:18 +0100 |
commit | d1f26bc43228843f57b1ee23c1690306d6440865 (patch) | |
tree | adadda8ac77ef95fb7ff0bb7be7c7610cfab3932 /source3/modules/vfs_netatalk.c | |
parent | 9678611d82d518bb16402a827cbf13769a5f0333 (diff) | |
download | samba-d1f26bc43228843f57b1ee23c1690306d6440865.tar.gz |
VFS: Modify chown 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 'source3/modules/vfs_netatalk.c')
-rw-r--r-- | source3/modules/vfs_netatalk.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/modules/vfs_netatalk.c b/source3/modules/vfs_netatalk.c index 4bb26d09dce..13ad402f89b 100644 --- a/source3/modules/vfs_netatalk.c +++ b/source3/modules/vfs_netatalk.c @@ -397,7 +397,10 @@ exit_chmod: return ret; } -static int atalk_chown(struct vfs_handle_struct *handle, const char *path, uid_t uid, gid_t gid) +static int atalk_chown(struct vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + uid_t uid, + gid_t gid) { int ret = 0; char *adbl_path = 0; @@ -406,14 +409,12 @@ static int atalk_chown(struct vfs_handle_struct *handle, const char *path, uid_t SMB_STRUCT_STAT orig_info; TALLOC_CTX *ctx; - ret = SMB_VFS_NEXT_CHOWN(handle, path, uid, gid); - - if (!path) return ret; + ret = SMB_VFS_NEXT_CHOWN(handle, smb_fname, uid, gid); if (!(ctx = talloc_init("chown_file"))) return ret; - if (atalk_build_paths(ctx, handle->conn->cwd, path, + if (atalk_build_paths(ctx, handle->conn->cwd, smb_fname->base_name, &adbl_path, &orig_path, &adbl_info, &orig_info) != 0) goto exit_chown; |