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

 
 

bug #45483: find -atime n Manpage Not Correct

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

Add a New Comment Rich Markup
   

Mon 02 Sep 2019 09:45:24 PM UTC, comment #2: 

I'm sure that Geoff is correct in his interpretation of the standard (it's his job, after all!) and so I will close this bug.

James Youngman <jay>
Group administrator
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 jay (Posted a comment)
  • -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)
  •  

    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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-02 jay StatusNone Invalid
        Assigned toNone jay
        Open/ClosedOpen Closed
    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.13-f8d8.
    Corresponding source code