diff --git a/mod_dnssd-r63-uid.patch b/mod_dnssd-r63-uid.patch new file mode 100644 index 0000000..1ff0ea2 --- /dev/null +++ b/mod_dnssd-r63-uid.patch @@ -0,0 +1,13 @@ +Index: mod_dnssd/trunk/src/mod_dnssd.c +=================================================================== +--- mod_dnssd/trunk/src/mod_dnssd.c (revision 63) ++++ mod_dnssd/trunk/src/mod_dnssd.c (working copy) +@@ -266,7 +266,7 @@ + + apr_pool_clear(p_loop); + +- if (pw->pw_uid <= 500) ++ if (pw->pw_uid < 500) + continue; + + if (*pw->pw_dir == 0 || strcmp(pw->pw_dir, "/") == 0) diff --git a/mod_dnssd.spec b/mod_dnssd.spec index 9f320e8..2235763 100644 --- a/mod_dnssd.spec +++ b/mod_dnssd.spec @@ -1,6 +1,6 @@ Name: mod_dnssd Version: 0.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: An Apache HTTPD module which adds Zeroconf support Group: System Environment/Daemons @@ -8,6 +8,7 @@ License: GPL URL: http://0pointer.de/lennart/projects/mod_dnssd/ Source0: http://0pointer.de/lennart/projects/mod_dnssd/%{name}-%{version}.tar.gz Source1: mod_dnssd.conf-httpd +Patch0: mod_dnssd-r63-uid.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: httpd-devel avahi-devel e2fsprogs-devel @@ -18,6 +19,7 @@ using Avahi. %prep %setup -q +%patch0 -p2 -b .uid %build %configure --disable-lynx @@ -38,6 +40,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/httpd/modules/mod_dnssd.so %changelog +* Tue Jul 24 2007 Ignacio Vazquez-Abrams 0.5-3 +- Add upstream patch to fix UID issue + * Mon Jun 25 2007 Ignacio Vazquez-Abrams 0.5-2 - Add LoadModule to the config file