mirror of
https://github.com/samba-team/samba.git
synced 2025-03-26 18:50:30 +03:00
s3: Fix bug 7759
This commit is contained in:
parent
b73a05e4e1
commit
97595597a3
@ -754,25 +754,27 @@ static int vfswrap_ntimes(vfs_handle_struct *handle,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (null_timespec(ft->atime)) {
|
||||
ft->atime= smb_fname->st.st_ex_atime;
|
||||
}
|
||||
if (ft != NULL) {
|
||||
if (null_timespec(ft->atime)) {
|
||||
ft->atime= smb_fname->st.st_ex_atime;
|
||||
}
|
||||
|
||||
if (null_timespec(ft->mtime)) {
|
||||
ft->mtime = smb_fname->st.st_ex_mtime;
|
||||
}
|
||||
if (null_timespec(ft->mtime)) {
|
||||
ft->mtime = smb_fname->st.st_ex_mtime;
|
||||
}
|
||||
|
||||
if (!null_timespec(ft->create_time)) {
|
||||
set_create_timespec_ea(handle->conn,
|
||||
smb_fname,
|
||||
ft->create_time);
|
||||
}
|
||||
if (!null_timespec(ft->create_time)) {
|
||||
set_create_timespec_ea(handle->conn,
|
||||
smb_fname,
|
||||
ft->create_time);
|
||||
}
|
||||
|
||||
if ((timespec_compare(&ft->atime,
|
||||
&smb_fname->st.st_ex_atime) == 0) &&
|
||||
(timespec_compare(&ft->mtime,
|
||||
&smb_fname->st.st_ex_mtime) == 0)) {
|
||||
return 0;
|
||||
if ((timespec_compare(&ft->atime,
|
||||
&smb_fname->st.st_ex_atime) == 0) &&
|
||||
(timespec_compare(&ft->mtime,
|
||||
&smb_fname->st.st_ex_mtime) == 0)) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(HAVE_UTIMENSAT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user