From owner-cvs-src@FreeBSD.ORG Mon Sep 18 16:39:31 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3528816A494; Mon, 18 Sep 2006 16:39:31 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4F0143D4C; Mon, 18 Sep 2006 16:39:30 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8IGdNBv015542; Mon, 18 Sep 2006 16:39:23 GMT (envelope-from maxim@repoman.freebsd.org) Received: (from maxim@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8IGdNBD015541; Mon, 18 Sep 2006 16:39:23 GMT (envelope-from maxim) Message-Id: <200609181639.k8IGdNBD015541@repoman.freebsd.org> From: Maxim Konovalov Date: Mon, 18 Sep 2006 16:39:23 +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/usr.bin/truncate truncate.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Sep 2006 16:39:31 -0000 maxim 2006-09-18 16:39:23 UTC FreeBSD src repository Modified files: usr.bin/truncate truncate.c Log: o Don't leak fd on error. o parselength() returns 0 or -1 so int is enough for its return type. Submitted by: Ighighi Ighighi, sheldonh MFC after: 3 weeks Revision Changes Path 1.12 +6 -4 src/usr.bin/truncate/truncate.c