From owner-cvs-src-old@FreeBSD.ORG Tue Oct 12 17:12:23 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64D921065693 for ; Tue, 12 Oct 2010 17:12:23 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5271C8FC24 for ; Tue, 12 Oct 2010 17:12:23 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o9CHCNRn000638 for ; Tue, 12 Oct 2010 17:12:23 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9CHCNKX000637 for cvs-src-old@freebsd.org; Tue, 12 Oct 2010 17:12:23 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201010121712.o9CHCNKX000637@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Tue, 12 Oct 2010 17:12:13 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/contrib/csup rcsparse.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2010 17:12:23 -0000 jhb 2010-10-12 17:12:13 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) contrib/csup rcsparse.c Log: SVN rev 213732 on 2010-10-12 17:12:13Z by jhb MFC 213300: If an RCS file is truncated, rcsfile_getdelta() will return NULL. Instead of faulting, check for NULL. However, returning an error would cause csup to just abort the entire update. Instead, break out of the loop and return ok. The attempts to update the file will trigger a MD5 failure which will cause csup to download the entire file as a fixup. Revision Changes Path 1.2.2.2 +8 -0 src/contrib/csup/rcsparse.c