Add missing last entry in long options array

- Resolves: #868611
This commit is contained in:
Petr Machata 2012-10-22 12:15:07 +02:00
parent 97d68efafa
commit 7ed0260f88
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff -up ./main.c~ ./main.c
--- ./main.c~ 2004-09-19 10:33:37.000000000 +0200
+++ ./main.c 2012-10-22 12:10:03.795745769 +0200
@@ -31,7 +31,8 @@ static struct option long_options[] =
{"keepgoing", 0, 0, 'k'},
{"list", 0, 0, 'l'},
{"replace", 1, 0, 'r'},
- {"version", 0, 0, 'v'}
+ {"version", 0, 0, 'v'},
+ {0, 0, 0, 0}
};
#else /* not HAVE_GETOPT_LONG */

View File

@ -1,11 +1,12 @@
Summary: Modify rpath of compiled programs
Name: chrpath
Version: 0.13
Release: 10%{?dist}
Release: 11%{?dist}
License: GPL+
Group: Development/Tools
URL: ftp://ftp.hungry.com/pub/hungry/chrpath/
Patch0: chrpath-0.13-NULL-entry.patch
Patch1: chrpath-0.13-getopt_long.patch
Source0: ftp://ftp.hungry.com/pub/hungry/chrpath/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@ -17,6 +18,7 @@ is supported.
%prep
%setup -q
%patch0 -p1 -b .NULL
%patch1 -p1 -b .getopt_long
%build
%configure
@ -38,6 +40,10 @@ rm -rf %{buildroot}
%{_mandir}/man1/chrpath.1*
%changelog
* Mon Oct 22 2012 Petr Machata <pmachata@redhat.com> - 0.13-11
- Add missing last entry in long options array
- Resolves: #868611
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild