From owner-cvs-src@FreeBSD.ORG Tue Jan 3 21:58:22 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 C537816A41F; Tue, 3 Jan 2006 21:58:22 +0000 (GMT) (envelope-from dds@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59E7143D58; Tue, 3 Jan 2006 21:58:22 +0000 (GMT) (envelope-from dds@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k03LwMxx031139; Tue, 3 Jan 2006 21:58:22 GMT (envelope-from dds@repoman.freebsd.org) Received: (from dds@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k03LwMGP031138; Tue, 3 Jan 2006 21:58:22 GMT (envelope-from dds) Message-Id: <200601032158.k03LwMGP031138@repoman.freebsd.org> From: Diomidis Spinellis Date: Tue, 3 Jan 2006 21:58:22 +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/sys/kern vfs_syscalls.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: Tue, 03 Jan 2006 21:58:22 -0000 dds 2006-01-03 21:58:22 UTC FreeBSD src repository Modified files: sys/kern vfs_syscalls.c Log: Normalize the tv_usec part of the utimes(2) arguments to ensure that a file's atime and mtime are only set to correct fractional second values (0-999999000ns with the current interface). Prior to this change users could create files with values outside that range. Moreover, on 32-bit machines tv_usec offsets larger than 4.3s would result in an unnormalized AND wrong timestamp value, due to overflow. MFC after: 1 week Revision Changes Path 1.397 +24 -3 src/sys/kern/vfs_syscalls.c