From owner-cvs-all Tue Feb 25 22:44:49 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EACFE37B401; Tue, 25 Feb 2003 22:44:47 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FEC243FDD; Tue, 25 Feb 2003 22:44:47 -0800 (PST) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h1Q6ik0U050623; Tue, 25 Feb 2003 22:44:46 -0800 (PST) (envelope-from das@repoman.freebsd.org) Received: (from das@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h1Q6ikVK050622; Tue, 25 Feb 2003 22:44:46 -0800 (PST) Message-Id: <200302260644.h1Q6ikVK050622@repoman.freebsd.org> From: David Schultz Date: Tue, 25 Feb 2003 22:44:46 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/cmp regular.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG das 2003/02/25 22:44:46 PST Modified files: usr.bin/cmp regular.c Log: The cmp utility has the questionable feature of using mmap when comparing regular files. Add a SIGSEGV handler to make its behavior less surprising when a read error occurs. The handler does not attempt to distinguish errors from file truncation, but anyone actively modifying a file while trying to compare it shouldn't even expect something sane to happen. PR: 45391 Reviewed by: mike (mentor) Revision Changes Path 1.18 +21 -0 src/usr.bin/cmp/regular.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message