Fix xargs ARG_MAX assert

This commit is contained in:
vcrhonek 2008-03-28 13:30:45 +00:00
parent 7e35f3fc8a
commit 85557700c2
2 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,12 @@
diff -up findutils-4.2.33/xargs/xargs.c_old findutils-4.2.33/xargs/xargs.c
--- findutils-4.2.33/xargs/xargs.c_old 2008-03-28 14:04:57.000000000 +0100
+++ findutils-4.2.33/xargs/xargs.c 2008-03-28 14:06:54.000000000 +0100
@@ -440,7 +440,7 @@ main (int argc, char **argv)
* specifies that it shall be at least LINE_MAX.
*/
#if defined(ARG_MAX)
- assert(bc_ctl.arg_max <= (ARG_MAX-2048));
+ assert(bc_ctl.arg_max <= bc_ctl.posix_arg_size_max);
#endif
#ifdef LINE_MAX
assert(bc_ctl.arg_max >= LINE_MAX);

View File

@ -1,7 +1,7 @@
Summary: The GNU versions of find utilities (find and xargs)
Name: findutils
Version: 4.2.33
Release: 1%{?dist}
Release: 2%{?dist}
Epoch: 1
License: GPLv3+
Group: Applications/File
@ -10,7 +10,7 @@ Source0: ftp://ftp.gnu.org/gnu/findutils/%{name}-%{version}.tar.gz
#Source1: ftp://ftp.gnu.org/gnu/findutils/%{name}-%{version}.tar.gz.sig
Patch1: findutils-4.2.31-no-locate.patch
Patch2: findutils-selinux.patch
Patch3: findutils-4.2.33-arg-max.patch
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -33,6 +33,7 @@ useful for finding things on your system.
%setup -q
%patch1 -p1 -b .no-locate
%patch2 -p1 -b .selinux
%patch3 -p1 -b .arg-max
autoreconf
@ -75,6 +76,10 @@ rm -rf $RPM_BUILD_ROOT
%{_infodir}/find.info*
%changelog
* Fri Mar 28 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 1:4.2.33-2
- Fix xargs ARG_MAX assert
Resolves: #439168
* Fri Feb 15 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 1:4.2.33-1
- Update to findutils-4.2.33
- Fix License