diff --git a/newsx-quotes.patch b/newsx-quotes.patch new file mode 100644 index 0000000..228672a --- /dev/null +++ b/newsx-quotes.patch @@ -0,0 +1,24 @@ +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; diff --git a/newsx.spec b/newsx.spec index c1ef310..5fa8134 100644 --- a/newsx.spec +++ b/newsx.spec @@ -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: ftp://ftp.kvaleberg.com/pub/%{name}-%{version}.tar.gz # 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 @@ pobiera przychodzące artykuły. %setup -q %patch0 -p1 %patch1 -p1 -b .stack +%patch2 -p1 -b .quotes %build autoreconf -f -i @@ -62,6 +64,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man[158]/* %changelog +* Tue Jul 29 2008 Dominik Mierzejewski 1.6-10 +- recognize single quotes (fixes bug #455806, patch by Enrico Scholz) + * Sat Jul 12 2008 Dominik Mierzejewski 1.6-9 - fixed stack buffer overflow in getarticle.c (#454483) - restored the use of history