1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s3:lib: let round_timespec() handle SAMBA_UTIME_OMIT

This ensures callers are not required to do the check themselves and we don't
clobber omit-timespecs in this function.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=7771

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2019-11-28 15:46:27 +00:00 committed by Jeremy Allison
parent f2af647e7d
commit e3ad7e36a3

View File

@ -141,6 +141,10 @@ void srv_put_dos_date3(char *buf,int offset,time_t unixdate)
void round_timespec(enum timestamp_set_resolution res, struct timespec *ts)
{
if (is_omit_timespec(ts)) {
return;
}
switch (res) {
case TIMESTAMP_SET_SECONDS:
round_timespec_to_sec(ts);