bugfindutils - Bugs: bug #45483, find -atime n Manpage Not Correct

 
 

bug #45483: find -atime n Manpage Not Correct

Submitted by:  None
Submitted on:  Mon 06 Jul 2015 07:54:09 PM UTC  
 
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Matthew Reuter Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  4.5.11
Fixed Release:  4.5.11

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 15 Jul 2015 11:01:18 AM UTC, comment #1:

The statement in the manpage matches the POSIX requirements for -atime and matches the behaviour I observe with 4.4.2 and 4.5.10.

$ date
Wed Jul 15 11:23:46 BST 2015
$ ls -lu
total 0
-rw-r--r-- 1 geoff geoff 0 Jul 14 11:00 oneday
-rw-r--r-- 1 geoff geoff 0 Jul 13 11:00 twodays
$ find . -atime +1
./twodays

I suspect that the problem here is with Matthew's conclusions about his observations. For example he might be mixing up the timestamps (using plain ls -l instead of ls -lu).

Geoff Clare <geoffclare>
Mon 06 Jul 2015 07:54:09 PM UTC, original submission:

-atime n
File was last accessed n*24 hours ago. When find figures out how
many 24-hour periods ago the file was last accessed, any fractional
part is ignored, so to match -atime +1, a file has to have been
accessed at least two days ago.

According to the way my system handled this command if I type in -atime +1 it gives the list of all files accessed that occurred greater than or equal to 24 hours ago. Not greater than or equal to 48 hours ago.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #34401:  0001-doc-fix-example-in-atime-rounding-description.patch added by berny (892B - text/x-patch - Thanks for the report - proposed patch attached)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by geoffclare (Posted a comment)
  • -email is unavailable- added by berny (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

    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.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-07-09 berny Attached File- => Added 0001-doc-fix-example-in-atime-rounding-description.patch, #34401

    Back to the top


    Powered by Savane 3.3