diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-10 14:35:37 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-10-15 20:07:51 +0000 |
commit | b01169ff32188939752c064e2eb803f57a837522 (patch) | |
tree | c5476f4d799c43dee9a00967353eb4955ad903bd /source3/modules | |
parent | e2863a7e395bc5b73f8d9ef7bca7c21f20c7eeb3 (diff) | |
download | samba-b01169ff32188939752c064e2eb803f57a837522.tar.gz |
s3: VFS: Complete the removal of SMB_VFS_CHOWN()
No longer used anywhere.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Oct 15 20:07:51 UTC 2019 on sn-devel-184
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_default.c | 14 | ||||
-rw-r--r-- | source3/modules/vfs_not_implemented.c | 10 |
2 files changed, 0 insertions, 24 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 13d849c5084..421772da377 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -2245,19 +2245,6 @@ static int vfswrap_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t m return result; } -static int vfswrap_chown(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - uid_t uid, - gid_t gid) -{ - int result; - - START_PROFILE(syscall_chown); - result = chown(smb_fname->base_name, uid, gid); - END_PROFILE(syscall_chown); - return result; -} - static int vfswrap_fchown(vfs_handle_struct *handle, files_struct *fsp, uid_t uid, gid_t gid) { #ifdef HAVE_FCHOWN @@ -3529,7 +3516,6 @@ static struct vfs_fn_pointers vfs_default_fns = { .unlinkat_fn = vfswrap_unlinkat, .chmod_fn = vfswrap_chmod, .fchmod_fn = vfswrap_fchmod, - .chown_fn = vfswrap_chown, .fchown_fn = vfswrap_fchown, .lchown_fn = vfswrap_lchown, .chdir_fn = vfswrap_chdir, diff --git a/source3/modules/vfs_not_implemented.c b/source3/modules/vfs_not_implemented.c index 083ebc9e1f1..b68b9e2e8b9 100644 --- a/source3/modules/vfs_not_implemented.c +++ b/source3/modules/vfs_not_implemented.c @@ -359,15 +359,6 @@ int vfs_not_implemented_fchmod(vfs_handle_struct *handle, files_struct *fsp, return -1; } -int vfs_not_implemented_chown(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - uid_t uid, - gid_t gid) -{ - errno = ENOSYS; - return -1; -} - int vfs_not_implemented_fchown(vfs_handle_struct *handle, files_struct *fsp, uid_t uid, gid_t gid) { @@ -1085,7 +1076,6 @@ static struct vfs_fn_pointers vfs_not_implemented_fns = { .unlinkat_fn = vfs_not_implemented_unlinkat, .chmod_fn = vfs_not_implemented_chmod, .fchmod_fn = vfs_not_implemented_fchmod, - .chown_fn = vfs_not_implemented_chown, .fchown_fn = vfs_not_implemented_fchown, .lchown_fn = vfs_not_implemented_lchown, .chdir_fn = vfs_not_implemented_chdir, |