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

 
 

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

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

Add a New Comment Rich Markup
   

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

Fixed in 4.3.x CVS tree

James Youngman <jay>
Group administrator
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>
Group administrator
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 Files:
   
   
Comment:
   

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
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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 -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code