cvs commit: src/sbin/savecore savecore.c

Robert Watson rwatson at FreeBSD.org
Thu Dec 27 13:28:49 PST 2007


rwatson     2007-12-27 21:28:48 UTC

  FreeBSD src repository

  Modified files:
    sbin/savecore        savecore.c 
  Log:
  Compare kernel dump header magic with textdump magic using strncmp()
  rather than the memcmp() which is used for regular dumps: the
  textdump string is one character shorter, so we need to stop
  comparing at the end of the string.
  
  Use independent version checking logic for architecture-specific
  version number vs. textdump version number, as the version sequences
  may (someday) differ.
  
  Run into by:    rrs
  
  Revision  Changes    Path
  1.80      +31 -11    src/sbin/savecore/savecore.c


More information about the cvs-src mailing list