Date/time bug in 2.0.5a?

Lack Mr G M gml4410 at ggr.co.uk
Thu Jul 29 11:05:20 GMT 1999


>   Is this just me????

   It wasn't...

>   24/06/1999 11:59 (on NT)  =>  25/06/1999 17:14 (Samba)
>   25/06/1999 17:00 (on NT)  =>  25/06/1999 17:09 (Samba)

   The patch (from the Samba Team) is:


===================================================================
RCS file: /data/cvs/samba/source/smbd/trans2.c,v
retrieving revision 1.105.2.22.2.2
diff -u -r1.105.2.22.2.2 trans2.c
--- trans2.c    1999/07/14 13:22:05 1.105.2.22.2.2
+++ trans2.c    1999/07/28 19:08:42
@@ -1664,7 +1664,7 @@
       tvs.actime = interpret_long_date(pdata+8);

       /* write time + changed time, combined. */
-      tvs.modtime=MAX(interpret_long_date(pdata+16),
+      tvs.modtime=MIN(interpret_long_date(pdata+16),
                       interpret_long_date(pdata+24));

 #if 0 /* Needs more testing... */


--------- Gordon Lack --------------- gml4410 at ggr.co.uk  ------------    
This message *may* reflect my personal opinion.  It is *not* intended 
to reflect those of my employer, or anyone else.


More information about the samba mailing list