You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by dg...@hyperreal.org on 1997/11/05 12:23:24 UTC

cvs commit: apachen/src/modules/standard mod_usertrack.c

dgaudet     97/11/05 03:23:24

  Modified:    src      CHANGES
               src/modules/standard mod_usertrack.c
  Log:
  Fix a year 2100+ formatting problem with mod_usertrack.
  
  PR:		1342
  Submitted by:	Paul Eggert <eg...@twinsun.com>
  Reviewed by:	Dean Gaudet, Marc Slemko, Martin Kraemer
  
  Revision  Changes    Path
  1.485     +3 -0      apachen/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/CHANGES,v
  retrieving revision 1.484
  retrieving revision 1.485
  diff -u -r1.484 -r1.485
  --- CHANGES	1997/11/03 10:11:39	1.484
  +++ CHANGES	1997/11/05 11:23:21	1.485
  @@ -1,5 +1,8 @@
   Changes with Apache 1.3b3
   
  +  *) Fix a year formatting bug in mod_usertrack.
  +     [Paul Eggert <eg...@twinsun.com>] PR#1342
  +
     *) A mild SIGTERM/SIGALRM race condition was eliminated.
        [Dean Gaudet] PR#1211
   
  
  
  
  1.21      +1 -1      apachen/src/modules/standard/mod_usertrack.c
  
  Index: mod_usertrack.c
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/modules/standard/mod_usertrack.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- mod_usertrack.c	1997/10/22 20:30:31	1.20
  +++ mod_usertrack.c	1997/11/05 11:23:23	1.21
  @@ -194,7 +194,7 @@
                   "%s%s; path=/; expires=%s, %.2d-%s-%.2d %.2d:%.2d:%.2d GMT",
                       COOKIE_NAME, cookiebuf, days[tms->tm_wday],
                       tms->tm_mday, month_names[tms->tm_mon],
  -                  (tms->tm_year >= 100) ? tms->tm_year - 100 : tms->tm_year,
  +		    tms->tm_year % 100,
                       tms->tm_hour, tms->tm_min, tms->tm_sec);
       }
       else