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

 
 

bug #30972: False positive with -amin

Submitted by:  Dario Niedermann <ndr>
Submitted on:  Sun 05 Sep 2010 11:24:50 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: Wrong resultStatus: Works For Me
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Open/Closed: Closed
Release: 4.2.31Fixed Release: 4.2.31

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

No response. Closing as obsolete.

James Youngman <jay>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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 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 soulonfire (Posted a comment)
  • -unavailable- added by ndr (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 11 May 2011 08:26:15 AM UTCjayStatusNeed Info=>Works For Me
      Assigned toNone=>jay
      Open/ClosedOpen=>Closed
    Thu 07 Oct 2010 09:40:20 AM UTCjayStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1