return ret;
}
-static int shadow_copy2_mknod(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname,
- mode_t mode,
- SMB_DEV_T dev)
-{
- time_t timestamp = 0;
-
- if (!shadow_copy2_strip_snapshot(talloc_tos(), handle,
- smb_fname->base_name,
- ×tamp, NULL)) {
- return -1;
- }
- if (timestamp != 0) {
- errno = EROFS;
- return -1;
- }
- return SMB_VFS_NEXT_MKNOD(handle, smb_fname, mode, dev);
-}
-
static int shadow_copy2_mknodat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct smb_filename *smb_fname,
.chdir_fn = shadow_copy2_chdir,
.ntimes_fn = shadow_copy2_ntimes,
.readlink_fn = shadow_copy2_readlink,
- .mknod_fn = shadow_copy2_mknod,
.mknodat_fn = shadow_copy2_mknodat,
.realpath_fn = shadow_copy2_realpath,
.get_nt_acl_fn = shadow_copy2_get_nt_acl,