Hi,
I've tried to fix the bug referenced to at
https://savannah.gnu.org/bugs/?23065. In my opinion, -daystart should have
effect on -{a,c,m}time only. Of course, if my solution is correct, the man and
info pages have to be updated as well.
Roberto Reale
[email protected]
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"))