bug-findutils
[Top][All Lists]
Advanced

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

[bug #22056] -Xtime tests are off by one second


From: Andreas Metzler
Subject: [bug #22056] -Xtime tests are off by one second
Date: Sat, 19 Jan 2008 14:45:28 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.13pre) Gecko/20070505 Iceape/1.0.9 (Debian-1.0.11~pre071022-0etch1)

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

                 Summary: -Xtime tests are off by one second
                 Project: findutils
            Submitted by: ametzler
            Submitted on: Samstag 19.01.2008 um 15:45
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Marc Haber
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
           Fixed Release: None

    _______________________________________________________

Details:

(SID)address@hidden:/tmp/testingnow$ rm * ; \
  for i in 86400 86399 86398 1; do \
    touch -d "$i seconds ago" $i ;\
  done;  touch now; \
  find . -type f -mtime 0;echo x ; sleep 1; \
  find . -type f -mtime 0
./86400
./1
./86398
./86399
x
./1
./now
./86398
./86399

As you can see -ctime 0 does not find the 0-second-old file, but does show
the 86400s (which is exactly one day) old file. I think that is wrong.

This applies to {m,c,a}time and both 4.2.x and 4.3.x.

thanks, cu andreas




    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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