Date: Fri, 2 Mar 2012 21:36:24 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r232406 - stable/9/usr.sbin/vipw Message-ID: <201203022136.q22LaOPJ048359@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203022136.q22LaOPJ048359>