bugfindutils - Bugs: bug #22056, -Xtime tests are off by one second


bug #22056: -Xtime tests are off by one second

Submitted by:  Andreas Metzler <ametzler>
Submitted on:  Sat 19 Jan 2008 02:45:27 PM UTC  
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  James Youngman <jay>
Originator Name:  Marc Haber Open/Closed:  Closed
Release:  4.3.12 Fixed Release:  4.3.13

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 12 Feb 2008 12:18:50 PM UTC, comment #2: 

Fixed in 4.3.x CVS tree

James Youngman <jay>
Project AdministratorIn charge of this item.
Tue 05 Feb 2008 10:22:40 AM UTC, comment #1: 

Confirmed.   Compare some other Unix:

$ rm -f x ; touch x; find . -mtime 0

James Youngman <jay>
Project AdministratorIn charge of this item.
Sat 19 Jan 2008 02:45:27 PM UTC, original submission:  

(SID)ametzler@argenau:/tmp/testingnow$ rm * ; \
  for i in 86400 86399 86398 1; do \
    touch -d "$i seconds ago" $i ;\
  done;  touch now; \
  find . -type f -mtime 0;echo x ; sleep 1; \
  find . -type f -mtime 0

As you can see -ctime 0 does not find the 0-second-old file, but does show the 86400s (which is exactly one day) old file. I think that is wrong.

This applies to {m,c,a}time and both 4.2.x and 4.3.x.

thanks, cu andreas

Andreas Metzler <ametzler>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by ametzler

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-02-14 jay Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.3.13
    2008-02-12 jay StatusIn Progress => Fixed
    2008-02-09 jay StatusConfirmed => In Progress
        ReleaseNone => 4.3.12
    2008-02-05 jay StatusNone => Confirmed
        Assigned toNone => jay
    2008-01-19 ametzler Carbon-CopyRemoved 20807 => -
    2008-01-19 ametzler Carbon-Copy- => Added 460733-submitter@bugs.debian.org

    Back to the top

    Powered by Savane 3.6