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

2012-02-13 Thread Ed Schouten
* John Baldwin , 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 BUG back as

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

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 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 we can use subsec

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 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 use nan