[make/f14/master: 1/2] func_sort should use isblank, not isspace
Petr Machata
pmachata at fedoraproject.org
Wed Oct 27 00:45:57 UTC 2010
commit 4527792b2793c48f753b3eaeb877296627bc0e90
Author: Petr Machata <pmachata at redhat.com>
Date: Wed Oct 27 02:43:31 2010 +0200
func_sort should use isblank, not isspace
make-3.82-sort-blank.patch | 22 ++++++++++++++++++++++
make.spec | 9 ++++++++-
2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/make-3.82-sort-blank.patch b/make-3.82-sort-blank.patch
new file mode 100644
index 0000000..7cfbbc0
--- /dev/null
+++ b/make-3.82-sort-blank.patch
@@ -0,0 +1,22 @@
+diff -urp make-3.82/function.c make-3.82-pm/function.c
+--- make-3.82/function.c 2010-07-13 03:20:39.000000000 +0200
++++ make-3.82-pm/function.c 2010-10-27 01:43:27.000000000 +0200
+@@ -1138,12 +1138,12 @@ func_sort (char *o, char **argv, const c
+ {
+ char c = *(t++);
+
+- if (! isspace ((unsigned char)c))
++ if (! isblank ((unsigned char)c))
+ continue;
+
+ ++wordi;
+
+- while (isspace ((unsigned char)*t))
++ while (isblank ((unsigned char)*t))
+ ++t;
+ }
+
+Только в make-3.82-pm: function.c~
+Двоичные файлы make-3.82/function.o и make-3.82-pm/function.o различаются
+Двоичные файлы make-3.82/make и make-3.82-pm/make различаются
+Только в make-3.82-pm: misc.c~
diff --git a/make.spec b/make.spec
index 8d979eb..f5c3dcf 100644
--- a/make.spec
+++ b/make.spec
@@ -3,7 +3,7 @@ Summary: A GNU tool which simplifies the build process for users
Name: make
Epoch: 1
Version: 3.82
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2+
Group: Development/Tools
URL: http://www.gnu.org/software/make/
@@ -17,6 +17,7 @@ Patch6: make-3.82-weird-shell.patch
Patch7: make-3.82-newlines.patch
Patch8: make-3.82-jobserver.patch
Patch9: make-3.82-bugfixes.patch
+Patch10: make-3.82-sort-blank.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
@@ -41,6 +42,7 @@ makefile.
%patch7 -p1
%patch8 -p1
%patch9 -p1
+%patch10 -p1
%build
%configure
@@ -83,6 +85,11 @@ fi
%{_infodir}/*.info*
%changelog
+* Wed Oct 27 2010 Petr Machata <pmachata at redhat.com> - 1:3.82-3
+- Fix a discrepancy between behavior of find_next_token and
+ pre-allocation of token memory in func_sort.
+- Resolves: #643359
+
* Mon Sep 13 2010 Petr Machata <pmachata at redhat.com> - 1:3.82-2
- Add upstream fixes for upstream bugs 30612 and 30723
- Resolves: #631552
More information about the scm-commits
mailing list