mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3/smbd: SMB_VFS_SET_DOS_ATTRIBUTES -> SMB_VFS_FSET_DOS_ATTRIBUTES
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
8bdd2420e8
commit
e2ca529db6
@ -967,8 +967,15 @@ int file_set_dosmode(connection_struct *conn,
|
||||
else
|
||||
dosmode &= ~FILE_ATTRIBUTE_DIRECTORY;
|
||||
|
||||
/* Store the DOS attributes in an EA by preference. */
|
||||
status = SMB_VFS_SET_DOS_ATTRIBUTES(conn, smb_fname, dosmode);
|
||||
if (smb_fname->fsp != NULL) {
|
||||
/* Store the DOS attributes in an EA by preference. */
|
||||
status = SMB_VFS_FSET_DOS_ATTRIBUTES(conn,
|
||||
smb_fname->fsp,
|
||||
dosmode);
|
||||
} else {
|
||||
status = NT_STATUS_OBJECT_NAME_NOT_FOUND;
|
||||
}
|
||||
|
||||
if (NT_STATUS_IS_OK(status)) {
|
||||
if (!newfile) {
|
||||
notify_fname(conn, NOTIFY_ACTION_MODIFIED,
|
||||
@ -1323,6 +1330,11 @@ NTSTATUS set_create_timespec_ea(connection_struct *conn,
|
||||
dosmode = fdos_mode(psmb_fname->fsp);
|
||||
|
||||
smb_fname->st.st_ex_btime = create_time;
|
||||
/*
|
||||
* ensure if we pass fsp around we can get the create time
|
||||
* from fsp->fsp_name
|
||||
*/
|
||||
smb_fname->fsp->fsp_name->st.st_ex_btime = create_time;
|
||||
|
||||
ret = file_set_dosmode(conn, smb_fname, dosmode, NULL, false);
|
||||
if (ret == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user