From owner-cvs-src-old@FreeBSD.ORG Wed Jun 30 18:34:58 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 C5D97106574B for ; Wed, 30 Jun 2010 18:34:58 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9AE388FC15 for ; Wed, 30 Jun 2010 18:34:58 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o5UIYwUn059457 for ; Wed, 30 Jun 2010 18:34:58 GMT (envelope-from jh@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o5UIYwkw059456 for cvs-src-old@freebsd.org; Wed, 30 Jun 2010 18:34:58 GMT (envelope-from jh@repoman.freebsd.org) Message-Id: <201006301834.o5UIYwkw059456@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jh@repoman.freebsd.org using -f From: Jaakko Heinonen Date: Wed, 30 Jun 2010 18:34:45 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/bsdlabel bsdlabel.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: Wed, 30 Jun 2010 18:34:58 -0000 jh 2010-06-30 18:34:45 UTC FreeBSD src repository Modified files: sbin/bsdlabel bsdlabel.c Log: SVN rev 209614 on 2010-06-30 18:34:45Z by jh - Don't assign the return value from read(2) to a variable of type int. - Use errx(3) instead of err(3) to print the error message on short reads in readlabel(). errno won't be set on short reads which can easily occur here due to the fixed size read request. PR: 144307 Reviewed by: bde Revision Changes Path 1.120 +8 -6 src/sbin/bsdlabel/bsdlabel.c