bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Andreas Metzler
Subject: [bug #20005] find -mtime [+-n]" is broken (behaves as "-mtime n")
Date: Tue, 29 May 2007 18:00:32 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.11) Gecko/20070217 Iceape/1.0.8 (Debian-1.0.8-4)

URL:
  <http://savannah.gnu.org/bugs/?20005>

                 Summary: find -mtime [+-n]" is broken (behaves as "-mtime
n")
                 Project: findutils
            Submitted by: ametzler
            Submitted on: Dienstag 29.05.2007 um 20:00
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Roderich Schupp
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.3.6
           Fixed Release: None

    _______________________________________________________

Details:

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




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20005>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]