summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index bbbfda7468..9811a9ff01 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1706,7 +1706,7 @@ static int call_trans2setfilepathinfo(connection_struct *conn,
write_time = interpret_long_date(pdata+16);
changed_time = interpret_long_date(pdata+24);
- tvs.modtime = MAX(write_time, changed_time);
+ tvs.modtime = MIN(write_time, changed_time);
/* Prefer a defined time to an undefined one. */
if (tvs.modtime == (time_t)0 || tvs.modtime == (time_t)-1)