bugfindutils - Bugs: bug #30972, False positive with -amin

 
 

bug #30972: False positive with -amin

Submitter:  Dario Niedermann <ndr>
Submitted:  Sun 05 Sep 2010 11:24:50 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Works For Me
Privacy:  Public Assigned to:  jay
Originator Name:  Open/Closed:  Closed
Release:  4.2.31 Fixed Release:  4.2.31
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 11 May 2011 08:26:15 AM UTC, comment #4: 

No response. Closing as obsolete.

James Youngman <jay>
Group administrator
Thu 07 Oct 2010 09:35:17 AM UTC, comment #3: 

Please provide a short shell script which reproduces your problem (including setting up the initial conditions).  Thanks.

James Youngman <jay>
Group administrator
Wed 06 Oct 2010 10:56:44 PM UTC, comment #2: 

I think this is not my case: I have a directory /tmp/foo that gets removed even though both /tmp and /tmp/foo were modified (written to) more recently than a week ago.

Dario Niedermann <ndr>
Wed 06 Oct 2010 10:14:17 PM UTC, comment #1: 

If there's a directory whose timestamp is older than a week and it has another directory which has files not older than a week they will be removed as you are removing the parent directory recursively.

Raffi Mohammed <soulonfire>
Sun 05 Sep 2010 11:24:50 PM UTC, original submission:  

Hello. The following command:

  find /tmp -maxdepth 1 -amin +10080 -exec rm -vrf {} \;

is supposed to remove files and directories whose access time is over a week ago, but it also incorrectly removes items that were accessed more recently.

This happens on Linux 2.6.27.31 with an Ext3 filesystem.

Dario Niedermann <ndr>

 

(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 soulonfire (Posted a comment)
  • -email is unavailable- added by ndr (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
    2011-05-11 jay StatusNeed Info Works For Me
        Assigned toNone jay
        Open/ClosedOpen Closed
    2010-10-07 jay StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code