bugfindutils - Bugs: bug #20005, find -mtime [+-n]" is broken...

 
 

bug #20005: find -mtime [+-n]" is broken (behaves as "-mtime n")

Submitted by:  Andreas Metzler <ametzler>
Submitted on:  Tue 29 May 2007 06:00:30 PM UTC  
 
Category: findSeverity: 4 - Important
Item Group: Wrong resultStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Roderich SchuppOpen/Closed: Closed
Release: 4.3.6Fixed Release: 4.3.7

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 31 May 2007 09:05:45 AM UTC, comment #1:

Fixed in CVS.

(file #12909)

James Youngman <jay>
Project AdministratorIn charge of this item.
Tue 29 May 2007 06:00:30 PM UTC, original submission:

This is http://bugs.debian.org/426505 submitted by Roderich Schupp. There is nothing to add, I have verified his findings. (Thanks, Roderich!)
cu andreas

----------------------------------------------------
Package: findutils
Version: 4.3.6-1
Severity: normal

"find -mtime [+-]n" is broken:

$ date
Tue May 29 00:33:37 CEST 2007

$ find 2007-05-2* -type f -ls
1986025 4 -rw-r--r-- 1 schupp users 210 May 25 19:54
2007-05-25/JOBS
1995532 4 -rw-r--r-- 1 schupp users 141 May 26 20:40
2007-05-26/JOBS
1997118 4 -rw-r--r-- 1 schupp users 197 May 27 18:48
2007-05-27/JOBS
9429 4 -rw-r--r-- 1 schupp users 625 May 28 21:12
2007-05-28/JOBS

$ find 2007-05-2* -type f -mtime -3 -ls
1986025 4 -rw-r--r-- 1 schupp users 210 May 25 19:54
2007-05-25/JOBS
$ find 2007-05-2* -type f -mtime -2 -ls
1995532 4 -rw-r--r-- 1 schupp users 141 May 26 20:40
2007-05-26/JOBS
$ find 2007-05-2* -type f -mtime -1 -ls
1997118 4 -rw-r--r-- 1 schupp users 197 May 27 18:48
2007-05-27/JOBS

Results are the same if I replace -n with +n, or just n (in which case the results are correct). This behaviour is a regression from 4.3.5-1.

Cheers, Roderich

Andreas Metzler <ametzler>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #12909:  sv-bug-20005.patch added by jay (3KiB - text/x-patch - Fix)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jay (Updated the item)
  • -unavailable- added by ametzler
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 09 Jun 2007 06:30:45 PM UTCjayOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.3.7
    Thu 31 May 2007 09:05:45 AM UTCjayAttached File-=>Added sv-bug-20005.patch, #12909
      Severity3 - Normal=>4 - Important
      StatusNone=>Fixed
      Assigned toNone=>jay
    Tue 29 May 2007 06:00:52 PM UTCametzlerCarbon-CopyRemoved 20807=>-
    Tue 29 May 2007 06:00:30 PM UTCametzlerCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1