From owner-cvs-all@FreeBSD.ORG Thu Dec 27 21:28:48 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3F0816A419; Thu, 27 Dec 2007 21:28:48 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C641F13C457; Thu, 27 Dec 2007 21:28:48 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lBRLSmFI004253; Thu, 27 Dec 2007 21:28:48 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBRLSmvd004252; Thu, 27 Dec 2007 21:28:48 GMT (envelope-from rwatson) Message-Id: <200712272128.lBRLSmvd004252@repoman.freebsd.org> From: Robert Watson Date: Thu, 27 Dec 2007 21:28:48 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sbin/savecore savecore.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2007 21:28:49 -0000 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