From 01916b20cd491d6c1c4645a72da6474defcb1eb5577284465f2e50a01e928636 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 11 Aug 2008 20:34:30 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/findutils?expand=0&rev=11 --- findutils-4.4.0.diff | 20 ++++++++++++++++++++ findutils.changes | 5 +++++ findutils.spec | 15 ++++++++++++--- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/findutils-4.4.0.diff b/findutils-4.4.0.diff index 5c7fbe5..15a4230 100644 --- a/findutils-4.4.0.diff +++ b/findutils-4.4.0.diff @@ -43,6 +43,26 @@ if (options.maxdepth >= 0) { if (ent->fts_level >= options.maxdepth) +--- find/parser.c ++++ find/parser.c +@@ -3234,7 +3234,7 @@ get_relative_timestamp (const char *str, + double sec_per_unit, + const char *overflowmessage) + { +- uintmax_t checkval; ++ double checkval; + double offset, seconds, nanosec; + + if (get_comp_type(&str, &result->kind)) +@@ -3259,7 +3259,7 @@ get_relative_timestamp (const char *str, + + result->ts.tv_sec = origin.tv_sec - seconds; + result->ts.tv_nsec = origin.tv_nsec - nanosec; +- checkval = (uintmax_t)origin.tv_sec - seconds; ++ checkval = origin.tv_sec - seconds; + + if (origin.tv_nsec < nanosec) + { --- locate/updatedb.1 +++ locate/updatedb.1 @@ -75,8 +75,7 @@ Default is \fInfs NFS proc\fP. diff --git a/findutils.changes b/findutils.changes index 979f680..3e15dc1 100644 --- a/findutils.changes +++ b/findutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 11 11:07:15 CEST 2008 - schwab@suse.de + +- Fix undefined behaviour. + ------------------------------------------------------------------- Mon Aug 4 11:19:33 CEST 2008 - schwab@suse.de diff --git a/findutils.spec b/findutils.spec index 89392e2..91657ed 100644 --- a/findutils.spec +++ b/findutils.spec @@ -2,9 +2,16 @@ # spec file for package findutils (Version 4.4.0) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. # +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -19,7 +26,7 @@ Obsoletes: find AutoReqProv: on PreReq: %{install_info_prereq} Version: 4.4.0 -Release: 23 +Release: 27 Summary: GNU find--Finding Files Source: findutils-%{version}.tar.bz2 Source1: sysconfig.locate @@ -131,6 +138,8 @@ rm -rf $RPM_BUILD_ROOT /var/adm/fillup-templates/* %changelog +* Mon Aug 11 2008 schwab@suse.de +- Fix undefined behaviour. * Mon Aug 04 2008 schwab@suse.de - Don't use fts. * Tue Mar 18 2008 schwab@suse.de