Re: svn commit: r231383 - in head: lib/libutil usr.sbin/vipw

2012-02-13 Thread John Baldwin
On Friday, February 10, 2012 8:40:32 am Ed Schouten wrote: Author: ed Date: Fri Feb 10 13:40:32 2012 New Revision: 231383 URL: http://svn.freebsd.org/changeset/base/231383 Log: Detect file modification properly by using tv_nsec. POSIX 2008 standardizes st_mtim, meaning we can

Re: svn commit: r231383 - in head: lib/libutil usr.sbin/vipw

2012-02-13 Thread Ed Schouten
* John Baldwin j...@freebsd.org, 20120213 17:26: Eh, the BUG is still worth mentioning. By default FreeBSD only uses second granularity for VFS timestamps, so two updates within a single second is still racey. You can keep the code change, but I would revert the manual page change to put the

svn commit: r231383 - in head: lib/libutil usr.sbin/vipw

2012-02-10 Thread Ed Schouten
Author: ed Date: Fri Feb 10 13:40:32 2012 New Revision: 231383 URL: http://svn.freebsd.org/changeset/base/231383 Log: Detect file modification properly by using tv_nsec. POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond precision to detect file modification. MFC

Re: svn commit: r231383 - in head: lib/libutil usr.sbin/vipw

2012-02-10 Thread Sergey Kandaurov
On 10 February 2012 17:40, Ed Schouten e...@freebsd.org wrote: Author: ed Date: Fri Feb 10 13:40:32 2012 New Revision: 231383 URL: http://svn.freebsd.org/changeset/base/231383 Log:  Detect file modification properly by using tv_nsec.  POSIX 2008 standardizes st_mtim, meaning we can simply

Re: svn commit: r231383 - in head: lib/libutil usr.sbin/vipw

2012-02-10 Thread Bruce Evans
On Fri, 10 Feb 2012, Sergey Kandaurov wrote: On 10 February 2012 17:40, Ed Schouten e...@freebsd.org wrote: Log: ?Detect file modification properly by using tv_nsec. ?POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond ?precision to detect file modification. I am not sure