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: findSeverity: 3 - Normal
Item Group: Wrong resultStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Marc HaberOpen/Closed: Closed
Release: 4.3.12Fixed 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
.
./x

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
./86400
./1
./86398
./86399
x
./1
./now
./86398
./86399

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 14 Feb 2008 11:10:35 AM UTCjayOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.3.13
    Tue 12 Feb 2008 12:18:50 PM UTCjayStatusIn Progress=>Fixed
    Sat 09 Feb 2008 03:26:01 PM UTCjayStatusConfirmed=>In Progress
      ReleaseNone=>4.3.12
    Tue 05 Feb 2008 10:22:40 AM UTCjayStatusNone=>Confirmed
      Assigned toNone=>jay
    Sat 19 Jan 2008 02:45:48 PM UTCametzlerCarbon-CopyRemoved 20807=>-
    Sat 19 Jan 2008 02:45:27 PM UTCametzlerCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1