From 322e73af7aa60ce6d737ce1e4736d4a41e4d5b10 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 27 Jul 2010 17:12:34 +0000 Subject: [PATCH] - Fixed argument type for --get (bug #553624). --- patch-get-arg.patch | 12 ++++++++++++ patch.spec | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 patch-get-arg.patch diff --git a/patch-get-arg.patch b/patch-get-arg.patch new file mode 100644 index 0000000..45f3bc8 --- /dev/null +++ b/patch-get-arg.patch @@ -0,0 +1,12 @@ +diff -up patch-2.6.1/src/patch.c.get-arg patch-2.6.1/src/patch.c +--- patch-2.6.1/src/patch.c.get-arg 2010-07-27 18:05:26.217150510 +0100 ++++ patch-2.6.1/src/patch.c 2010-07-27 18:05:47.464150892 +0100 +@@ -558,7 +558,7 @@ static struct option const longopts[] = + {"remove-empty-files", no_argument, NULL, 'E'}, + {"force", no_argument, NULL, 'f'}, + {"fuzz", required_argument, NULL, 'F'}, +- {"get", no_argument, NULL, 'g'}, ++ {"get", required_argument, NULL, 'g'}, + {"input", required_argument, NULL, 'i'}, + {"ignore-whitespace", no_argument, NULL, 'l'}, + #ifdef ENABLE_MERGE diff --git a/patch.spec b/patch.spec index d7a08e7..ad0c68c 100644 --- a/patch.spec +++ b/patch.spec @@ -1,12 +1,13 @@ Summary: Utility for modifying/upgrading files Name: patch Version: 2.6.1 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ URL: http://www.gnu.org/software/patch/patch.html Group: Development/Tools Source: ftp://ftp.gnu.org/gnu/patch/patch-%{version}.tar.xz Patch1: patch-2.5.4-sigsegv.patch +Patch2: patch-get-arg.patch Patch100: patch-selinux.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -29,6 +30,9 @@ applications. # Avoid segfault. %patch1 -p1 -b .sigsegv +# Fixed argument type for --get (bug #553624). +%patch2 -p1 -b .get-arg + # SELinux support. %patch100 -p1 -b .selinux @@ -54,6 +58,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/*/* %changelog +* Tue Jul 27 2010 Tim Waugh 2.6.1-3 +- Fixed argument type for --get (bug #553624). + * Wed Mar 3 2010 Tim Waugh 2.6.1-2 - Added comments for all patches. - Ship COPYING file.