3
0
forked from pool/findutils
OBS User unknown 2008-08-11 20:34:30 +00:00 committed by Git OBS Bridge
parent 6035ca3aa3
commit 01916b20cd
3 changed files with 37 additions and 3 deletions

View File

@ -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.

View File

@ -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

View File

@ -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