Received: by mail.netbsd.org (Postfix, from userid 0) id BE01063B102; Wed, 27 Oct 2010 02:58:07 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 5F7D463B101 for ; Wed, 27 Oct 2010 02:58:06 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 0E57E175DF; Wed, 27 Oct 2010 02:58:05 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Wed, 27 Oct 2010 02:58:05 +0000 From: "Mindaugas Rasiukevicius" Subject: CVS commit: src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20101027025806.0E57E175DF@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: list Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Mindaugas Rasiukevicius" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: rmind Date: Wed Oct 27 02:58:05 UTC 2010 Modified Files: src/sys/kern: sys_descrip.c Log Message: do_posix_fadvise: check for a negative length; truncate the offset and round the end-offset, not vice-versa. Thanks to jakllsch@ for debug info. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/kern/sys_descrip.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.