mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
s3/smbd: set_ea SMB_VFS_FSETXATTR => SMB_VFS_FSETXATTR
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
0e789ba180
commit
ecd83a5877
@ -815,24 +815,11 @@ NTSTATUS set_ea(connection_struct *conn, files_struct *fsp,
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
if (!fsp->fsp_flags.is_pathref &&
|
||||
fsp_get_io_fd(fsp) != -1)
|
||||
{
|
||||
DEBUG(10,("set_ea: setting ea name %s on file "
|
||||
"%s by file descriptor.\n",
|
||||
unix_ea_name, fsp_str_dbg(fsp)));
|
||||
ret = SMB_VFS_FSETXATTR(fsp, unix_ea_name,
|
||||
ea_list->ea.value.data, ea_list->ea.value.length, 0);
|
||||
} else {
|
||||
DEBUG(10,("set_ea: setting ea name %s on file %s.\n",
|
||||
unix_ea_name, fsp->fsp_name->base_name));
|
||||
ret = SMB_VFS_SETXATTR(conn,
|
||||
fsp->fsp_name,
|
||||
unix_ea_name,
|
||||
ea_list->ea.value.data,
|
||||
ea_list->ea.value.length,
|
||||
0);
|
||||
}
|
||||
DEBUG(10,("set_ea: setting ea name %s on file "
|
||||
"%s by file descriptor.\n",
|
||||
unix_ea_name, fsp_str_dbg(fsp)));
|
||||
ret = SMB_VFS_FSETXATTR(fsp, unix_ea_name,
|
||||
ea_list->ea.value.data, ea_list->ea.value.length, 0);
|
||||
}
|
||||
|
||||
if (ret == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user