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>
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);