From owner-svn-src-stable@FreeBSD.ORG Fri Mar 2 21:36:24 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4CCF1065679; Fri, 2 Mar 2012 21:36:24 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9FE948FC16; Fri, 2 Mar 2012 21:36:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q22LaOZH048361; Fri, 2 Mar 2012 21:36:24 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q22LaOPJ048359; Fri, 2 Mar 2012 21:36:24 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201203022136.q22LaOPJ048359@svn.freebsd.org> From: Ed Schouten Date: Fri, 2 Mar 2012 21:36:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232406 - stable/9/usr.sbin/vipw X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 21:36:24 -0000 Author: ed Date: Fri Mar 2 21:36:24 2012 New Revision: 232406 URL: http://svn.freebsd.org/changeset/base/232406 Log: MFC r231383, r231385 and r231648: Detect file modification properly by using tv_nsec. POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond precision to detect file modification. Modified: stable/9/usr.sbin/vipw/vipw.8 Directory Properties: stable/9/usr.sbin/vipw/ (props changed) Modified: stable/9/usr.sbin/vipw/vipw.8 ============================================================================== --- stable/9/usr.sbin/vipw/vipw.8 Fri Mar 2 21:29:57 2012 (r232405) +++ stable/9/usr.sbin/vipw/vipw.8 Fri Mar 2 21:36:24 2012 (r232406) @@ -28,7 +28,7 @@ .\" @(#)vipw.8 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd June 6, 1993 +.Dd February 14, 2012 .Dt VIPW 8 .Os .Sh NAME @@ -112,8 +112,11 @@ utility appeared in .Bx 4.0 . .Sh BUGS The mechanism for checking for password file modifications requires that +the modification time of the password file changes. +This means that in a default configuration where file system timestamps +are not calculated with sub-second precision, .Ev EDITOR -run for at least one second. +has to run for at least one second. Non-interactive editor scripts should invoke .Xr sleep 1 or equivalent to ensure this happens.