From owner-cvs-all@FreeBSD.ORG Sun Jan 22 13:41:17 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B7E716A422; Sun, 22 Jan 2006 13:41:17 +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 59A1B43D5C; Sun, 22 Jan 2006 13:41:16 +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 k0MDfGhX028817; Sun, 22 Jan 2006 13:41:16 GMT (envelope-from dds@repoman.freebsd.org) Received: (from dds@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0MDfGg3028816; Sun, 22 Jan 2006 13:41:16 GMT (envelope-from dds) Message-Id: <200601221341.k0MDfGg3028816@repoman.freebsd.org> From: Diomidis Spinellis Date: Sun, 22 Jan 2006 13:41:16 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Cc: Subject: cvs commit: src/lib/libc/sys utimes.2 src/sys/kern vfs_syscalls.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2006 13:41:17 -0000 dds 2006-01-22 13:41:15 UTC FreeBSD src repository Modified files: (Branch: RELENG_4) lib/libc/sys utimes.2 sys/kern vfs_syscalls.c Log: MFC: Return EINVAL if the tv_usec part of the utimes(2) arguments contains incorrect fractional second values (outside the range 0-999999). 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. Revision Changes Path 1.8.2.5 +7 -1 src/lib/libc/sys/utimes.2 1.151.2.20 +3 -0 src/sys/kern/vfs_syscalls.c