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:
parent
f2af647e7d
commit
e3ad7e36a3
@ -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)
|
void round_timespec(enum timestamp_set_resolution res, struct timespec *ts)
|
||||||
{
|
{
|
||||||
|
if (is_omit_timespec(ts)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (res) {
|
switch (res) {
|
||||||
case TIMESTAMP_SET_SECONDS:
|
case TIMESTAMP_SET_SECONDS:
|
||||||
round_timespec_to_sec(ts);
|
round_timespec_to_sec(ts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user