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

 
 

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

Submitter:  Andreas Metzler <ametzler>
Submitted:  Tue 29 May 2007 06:00:30 PM UTC
 
Category:  find Severity:  4 - Important
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Roderich Schupp Open/Closed:  Closed
Release:  4.3.6 Fixed Release:  4.3.7
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

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

Fixed in CVS.

(file #12909)

James Youngman <jay>
Project Administrator
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 Files:
   
   
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
  • -email is unavailable- added by jay (Updated the item)
  • -email is unavailable- added by ametzler
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2007-06-09 jay Open/ClosedOpen Closed
        Fixed ReleaseNone 4.3.7
    2007-05-31 jay Attached File- Added sv-bug-20005.patch, #12909
        Severity3 - Normal 4 - Important
        StatusNone Fixed
        Assigned toNone jay
    2007-05-29 ametzler Carbon-CopyRemoved 20807 -
    2007-05-29 ametzler Carbon-Copy- Added -email is unavailable-

    Back to the top


    Powered by Savane 3.9