diff options
author | Jeremy Allison <jra@samba.org> | 2019-08-21 13:45:02 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-08-22 18:00:34 +0000 |
commit | 0d606ef6c4ce5948424c779fe951f6cbc2cae021 (patch) | |
tree | 871c3a814427547c3edbceed6a090254b1c148a8 /source3 | |
parent | 7237517c8b46a578aa38da167e42b6619f3ae68c (diff) | |
download | samba-0d606ef6c4ce5948424c779fe951f6cbc2cae021.tar.gz |
s3: VFS: vfs_cap. Remove mknod_fn(). No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_cap.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/source3/modules/vfs_cap.c b/source3/modules/vfs_cap.c index a801da0a2eb..4a5992f8af6 100644 --- a/source3/modules/vfs_cap.c +++ b/source3/modules/vfs_cap.c @@ -645,42 +645,6 @@ static int cap_linkat(vfs_handle_struct *handle, return ret; } -static int cap_mknod(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - mode_t mode, - SMB_DEV_T dev) -{ - struct smb_filename *cap_smb_fname = NULL; - char *cappath = capencode(talloc_tos(), smb_fname->base_name); - int ret; - int saved_errno = 0; - - if (!cappath) { - errno = ENOMEM; - return -1; - } - cap_smb_fname = synthetic_smb_fname(talloc_tos(), - cappath, - NULL, - NULL, - smb_fname->flags); - if (cap_smb_fname == NULL) { - TALLOC_FREE(cappath); - errno = ENOMEM; - return -1; - } - ret = SMB_VFS_NEXT_MKNOD(handle, cap_smb_fname, mode, dev); - if (ret == -1) { - saved_errno = errno; - } - TALLOC_FREE(cappath); - TALLOC_FREE(cap_smb_fname); - if (saved_errno != 0) { - errno = saved_errno; - } - return ret; -} - static int cap_mknodat(vfs_handle_struct *handle, files_struct *dirfsp, const struct smb_filename *smb_fname, @@ -1076,7 +1040,6 @@ static struct vfs_fn_pointers vfs_cap_fns = { .symlink_fn = cap_symlink, .readlink_fn = cap_readlink, .linkat_fn = cap_linkat, - .mknod_fn = cap_mknod, .mknodat_fn = cap_mknodat, .realpath_fn = cap_realpath, .sys_acl_get_file_fn = cap_sys_acl_get_file, |