svn commit: r232406 - stable/9/usr.sbin/vipw
Ed Schouten
ed at FreeBSD.org
Fri Mar 2 21:36:24 UTC 2012
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.
More information about the svn-src-stable-9
mailing list