]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r248446: find: Include nanoseconds when comparing timestamps of files.
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 24 Mar 2013 12:35:12 +0000 (12:35 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 24 Mar 2013 12:35:12 +0000 (12:35 +0000)
commit8228bbb606fd75e33096b9aed28e2698cb1a9525
treea076226f7246d00482d2181ffedf8c35bbe6e237
parent9329eb7c4452ee6adab079ad96241326629ab20b
MFC r248446: find: Include nanoseconds when comparing timestamps of files.

When comparing to the timestamp of a given file using -newer, -Xnewer and
-newerXY (where X and Y are one of m, c, a, B), include nanoseconds in the
comparison.

The primaries that compare a timestamp of a file to a given value (-Xmin,
-Xtime, -newerXt) continue to compare times in whole seconds.

Note that the default value 0 of vfs.timestamp_precision almost always
causes the nanoseconds part to be 0. However, touch -d can set a timestamp
to the microsecond regardless of that sysctl.

git-svn-id: svn://svn.freebsd.org/base/stable/9@248681 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/find/find.h
usr.bin/find/function.c