Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Mar 2004 12:02:23 -0800 (PST)
From:      Garance A Drosehn <gad@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.sbin/ac ac.c
Message-ID:  <200403082002.i28K2NCa034056@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
gad         2004/03/08 12:02:23 PST

  FreeBSD src repository

  Modified files:
    usr.sbin/ac          ac.c 
  Log:
  Add a check for wtmp records which have invalid values for ut_time.  Wtmp
  records with time==0 get "the time of the last valid record", while records
  where time goes backwards (compared to the previous record) are skipped.
  Also prints a message saying how many records were changed or skipped due
  to these checks. Check was inspired by a simpler check in OpenBSD's version.
  
  This is all meant to sidestep problems that Tillman Hodgson noticed with 'ac'
  when running sparc64 with 64-bit time_t's.  The real problem is whatever is
  creating wtmp records with ut_time==0, of course, but I have not yet figured
  out what is doing that.
  
  Reviewed by:    no screams from freebsd-sparc64 or bde
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.29      +64 -12    src/usr.sbin/ac/ac.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403082002.i28K2NCa034056>