dgaudet     98/01/21 14:27:20

  Modified:    src      CHANGES
               src/support suexec.c
  Log:
  fix y2k problem with suexec log
  
  PR:           1343
  Submitted by: Paul Eggert <[EMAIL PROTECTED]>
  Reviewed by:  Martin Kraemer, Marc Slemko, Roy Fielding
  
  Revision  Changes    Path
  1.583     +3 -0      apachen/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/CHANGES,v
  retrieving revision 1.582
  retrieving revision 1.583
  diff -u -r1.582 -r1.583
  --- CHANGES   1998/01/21 22:24:00     1.582
  +++ CHANGES   1998/01/21 22:27:17     1.583
  @@ -1,4 +1,7 @@
   Changes with Apache 1.3b4
  +
  +  *) Fix Y2K problem with date printing in suexec log.
  +     [Paul Eggert <[EMAIL PROTECTED]>] PR#1343
     
     *) WIN32 deserves a pid file.  [Ben Hyde]
   
  
  
  
  1.33      +3 -2      apachen/src/support/suexec.c
  
  Index: suexec.c
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/support/suexec.c,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- suexec.c  1998/01/21 22:22:09     1.32
  +++ suexec.c  1998/01/21 22:27:19     1.33
  @@ -175,8 +175,9 @@
       time(&timevar);
       lt = localtime(&timevar);
   
  -    fprintf(log, "[%.2d:%.2d:%.2d %.2d-%.2d-%.2d]: ", lt->tm_hour, 
lt->tm_min,
  -         lt->tm_sec, lt->tm_mday, (lt->tm_mon + 1), lt->tm_year);
  +    fprintf(log, "[%d-%.2d-%.2d %.2d:%.2d:%.2d]: ",
  +         lt->tm_year + 1900, lt->tm_mon + 1, lt->tm_mday,
  +         lt->tm_hour, lt->tm_min, lt->tm_sec);
   
       vfprintf(log, fmt, ap);
   
  
  
  

Reply via email to