rpms/openslp/F-11 openslp-1.2.1-nullauth.patch, NONE, 1.1 openslp.spec, 1.20, 1.21
Rex Dieter
rdieter at fedoraproject.org
Wed Sep 16 13:21:50 UTC 2009
Author: rdieter
Update of /cvs/pkgs/rpms/openslp/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8827
Modified Files:
openslp.spec
Added Files:
openslp-1.2.1-nullauth.patch
Log Message:
* Wed Sep 16 2009 Rex Dieter <rdieter at fedoraproject.org> - 1.2.1-14
- slpd crashes if slptool findsrvtypes is run, when message logging is on (#523609)
openslp-1.2.1-nullauth.patch:
slpd_log.c | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
--- NEW FILE openslp-1.2.1-nullauth.patch ---
diff -up openslp-1.2.1/slpd/slpd_log.c.orig openslp-1.2.1/slpd/slpd_log.c
--- openslp-1.2.1/slpd/slpd_log.c.orig 2005-02-08 05:34:31.000000000 +0000
+++ openslp-1.2.1/slpd/slpd_log.c 2009-09-15 19:39:23.000000000 +0100
@@ -179,7 +179,8 @@ void SLPDLogBuffer(const char* prefix, i
if (G_SlpdLogFile)
{
fprintf(G_SlpdLogFile,"%s",prefix);
- fwrite(buf,bufsize,1,G_SlpdLogFile);
+ if (buf && (bufsize > 0))
+ fwrite(buf,bufsize,1,G_SlpdLogFile);
fprintf(G_SlpdLogFile,"\n");
fflush(G_SlpdLogFile);
}
@@ -275,7 +276,21 @@ void SLPDLogSrvTypeRqstMessage(SLPSrvTyp
/*-------------------------------------------------------------------------*/
{
SLPDLog("Message SRVTYPERQST:\n");
- SLPDLogBuffer(" namingauth = ", srvtyperqst->namingauthlen, srvtyperqst->namingauth);
+
+ if (srvtyperqst->namingauthlen == 0xffff)
+ {
+ /* Naming authority matches all */
+ SLPDLog(" namingauth = (all)\n");
+ }
+ else if (srvtyperqst->namingauthlen == 0)
+ {
+ SLPDLog(" namingauth = (empty)\n");
+ }
+ else
+ {
+ /* Naming authority has been provided */
+ SLPDLogBuffer(" namingauth = ", srvtyperqst->namingauthlen, srvtyperqst->namingauth);
+ }
SLPDLogBuffer(" scope = ", srvtyperqst->scopelistlen, srvtyperqst->scopelist);
}
Index: openslp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openslp/F-11/openslp.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -p -r1.20 -r1.21
--- openslp.spec 26 Feb 2009 08:45:35 -0000 1.20
+++ openslp.spec 16 Sep 2009 13:21:47 -0000 1.21
@@ -2,7 +2,7 @@
Summary: Open implementation of Service Location Protocol V2
Name: openslp
Version: 1.2.1
-Release: 11%{?dist}
+Release: 14%{?dist}
Group: System Environment/Libraries
License: BSD
@@ -11,7 +11,11 @@ Source: http://dl.sourceforge.net/sourc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source1: slpd.init
+
Patch1: openslp-1.2.1-optflags.patch
+# slpd crashes if slptool findsrvtypes is run, when message logging is on
+# http://bugzilla.redhat.com/523609
+Patch2: openslp-1.2.1-nullauth.patch
BuildRequires: automake libtool
BuildRequires: bison
@@ -30,7 +34,7 @@ by RFC 2608 and RFC 2614.
%package devel
Summary: OpenSLP headers and libraries
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
OpenSLP header files and libraries.
@@ -49,12 +53,14 @@ OpenSLP server daemon to dynamically reg
%setup -q
%patch1 -p1 -b .optflags
+%patch2 -p1 -b .nullauth
# tarball goof (?), it wants to re-automake anyway, so let's do it right.
-libtoolize --force
-aclocal
-autoconf
-automake --add-missing
+#libtoolize --force
+#aclocal
+#autoconf
+#automake --add-missing
+autoreconf -f -i
# remove CVS leftovers...
find . -name "CVS" | xargs rm -rf
@@ -117,15 +123,15 @@ fi
%defattr(-,root,root)
%doc AUTHORS COPYING FAQ NEWS README THANKS
%config(noreplace) %{_sysconfdir}/slp.conf
-%{_bindir}/*
-%{_libdir}/lib*.so.*
+%{_bindir}/slptool
+%{_libdir}/libslp.so.1*
%files server
%defattr(-,root,root)
%doc doc/html/IntroductionToSLP
%doc doc/html/UsersGuide
%doc doc/html/faq*
-%{_sbindir}/*
+%{_sbindir}/slpd
%config(noreplace) %{_sysconfdir}/slp.reg
%config(noreplace) %{_sysconfdir}/slp.spi
%config(noreplace) %{_initrddir}/slpd
@@ -134,11 +140,20 @@ fi
%defattr(-,root,root)
%doc doc/html/ProgrammersGuide
%doc doc/rfc
-%{_includedir}/*
-%{_libdir}/lib*.so
+%{_includedir}/slp.h
+%{_libdir}/libslp.so
%changelog
+* Wed Sep 16 2009 Rex Dieter <rdieter at fedoraproject.org> - 1.2.1-14
+- slpd crashes if slptool findsrvtypes is run, when message logging is on (#523609)
+
+* Fri Aug 21 2009 Tomas Mraz <tmraz at redhat.com> - 1.2.1-13
+- rebuilt with new openssl
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.1-12
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
More information about the scm-commits
mailing list