bug-findutils
[Top][All Lists]
Advanced

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

Savannah bug #23065 -- -daystart measures from start of tomorrow


From: address@hidden
Subject: Savannah bug #23065 -- -daystart measures from start of tomorrow
Date: Tue, 20 Apr 2010 10:27:57 +0200 (CEST)

Hi,
Excuse me if I resend my patch, but maybe it got lost?...
In my opinion, -daystart should have effect on -{a,c,m}time only. Is it 
correct?

Roberto Reale
address@hidden


diff -Naur findutils/find/parser.c findutils-new/find/parser.c
--- findutils/find/parser.c     2010-04-12 16:59:53.000000000 +0200
+++ findutils-new/find/parser.c 2010-04-12 17:52:26.000000000 +0200
@@ -1485,9 +1485,8 @@
   if (collect_arg (argv, arg_ptr, &minutes))
     {
       struct time_val tval;
-      struct timespec origin = options.cur_day_start;
+      struct timespec origin = options.start_time;
       tval.xval = xv;
-      origin.tv_sec += DAYSECS;
       if (get_relative_timestamp (minutes, &tval, origin, 60,
                                  "arithmetic overflow while converting %s "
                                  "minutes to a number of seconds"))






reply via email to

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