mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
lib: handle NTTIME_THAW in nt_time_to_full_timespec()
Preliminary handling of NTTIME_THAW to avoid NTTIME_THAW is passed as some mangled value down to the VFS set timestamps function. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14127 RN: Avoid storing NTTIME_THAW (-2) as value on disk Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
0659069f82
commit
6ed71ad7e6
@ -1128,10 +1128,10 @@ struct timespec nt_time_to_full_timespec(NTTIME nt)
|
||||
if (nt == NTTIME_OMIT) {
|
||||
return make_omit_timespec();
|
||||
}
|
||||
if (nt == NTTIME_FREEZE) {
|
||||
if (nt == NTTIME_FREEZE || nt == NTTIME_THAW) {
|
||||
/*
|
||||
* This should be returned as SAMBA_UTIME_FREEZE in the
|
||||
* future.
|
||||
* This should be returned as SAMBA_UTIME_FREEZE or
|
||||
* SAMBA_UTIME_THAW in the future.
|
||||
*/
|
||||
return make_omit_timespec();
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
^samba3.smb2.timestamps.freeze-thaw\(.*\)$
|
Loading…
Reference in New Issue
Block a user