rpms/newsx/F-9 newsx-quotes.patch,NONE,1.1 newsx.spec,1.8,1.9
Dominik Mierzejewski (rathann)
fedora-extras-commits at redhat.com
Tue Jul 29 21:04:43 UTC 2008
Author: rathann
Update of /cvs/pkgs/rpms/newsx/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2050
Modified Files:
newsx.spec
Added Files:
newsx-quotes.patch
Log Message:
* Tue Jul 29 2008 Dominik Mierzejewski <rpm at greysector.net> 1.6-10
- recognize single quotes (fixes bug #455806, patch by Enrico Scholz)
newsx-quotes.patch:
--- NEW FILE newsx-quotes.patch ---
diff -up newsx-1.6/src/config.c.~1~ newsx-1.6/src/config.c
--- newsx-1.6/src/config.c.~1~ 2003-05-18 12:57:24.000000000 +0200
+++ newsx-1.6/src/config.c 2008-07-14 09:19:11.000000000 +0200
@@ -402,6 +402,9 @@ config_line(char *buf)
if (*q == '"') {
is_quote = 1;
++q;
+ } else if (*q == '\'') {
+ is_quote = 2;
+ ++q;
}
/* BUG: what about ';'? */
@@ -428,7 +431,9 @@ config_line(char *buf)
is_more = 1;
buf = q;
break;
- } else if (is_quote && c=='"') {
+ } else if (is_quote==1 && c=='"') {
+ break;
+ } else if (is_quote==2 && c=='\'') {
break;
} else {
*p++ = c;
Index: newsx.spec
===================================================================
RCS file: /cvs/pkgs/rpms/newsx/F-9/newsx.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- newsx.spec 12 Jul 2008 22:28:47 -0000 1.8
+++ newsx.spec 29 Jul 2008 21:04:13 -0000 1.9
@@ -1,6 +1,6 @@
Name: newsx
Version: 1.6
-Release: 9%{?dist}
+Release: 10%{?dist}
License: GPLv2+
Summary: NNTP news exchange utility
Summary(pl): NarzÄdzie do wymiany newsów po NNTP
@@ -9,6 +9,7 @@
# Source0-md5: ad9c76c53d5c7d21d86bec805fe8cd34
Patch0: %{name}-make.patch
Patch1: %{name}-stack.patch
+Patch2: %{name}-quotes.patch
BuildRequires: inn-devel
BuildRequires: automake
BuildRequires: autoconf
@@ -29,6 +30,7 @@
%setup -q
%patch0 -p1
%patch1 -p1 -b .stack
+%patch2 -p1 -b .quotes
%build
autoreconf -f -i
@@ -62,6 +64,9 @@
%{_mandir}/man[158]/*
%changelog
+* Tue Jul 29 2008 Dominik Mierzejewski <rpm at greysector.net> 1.6-10
+- recognize single quotes (fixes bug #455806, patch by Enrico Scholz)
+
* Sat Jul 12 2008 Dominik Mierzejewski <rpm at greysector.net> 1.6-9
- fixed stack buffer overflow in getarticle.c (#454483)
- restored the use of history
More information about the fedora-extras-commits
mailing list