This commit is contained in:
parent
db60f36d0f
commit
9e811f63b5
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 21 10:51:20 CEST 2007 - schwab@suse.de
|
||||||
|
|
||||||
|
- Fix unaligned access.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 20 17:58:09 CET 2007 - sbrabec@suse.cz
|
Tue Feb 20 17:58:09 CET 2007 - sbrabec@suse.cz
|
||||||
|
|
||||||
|
@ -14,12 +14,13 @@ Name: nss-mdns
|
|||||||
# lynx is not needed, text version of README is already present
|
# lynx is not needed, text version of README is already present
|
||||||
#BuildRequires: lynx
|
#BuildRequires: lynx
|
||||||
Version: 0.9
|
Version: 0.9
|
||||||
Release: 1
|
Release: 8
|
||||||
Group: Productivity/Networking/DNS/Utilities
|
Group: Productivity/Networking/DNS/Utilities
|
||||||
License: GNU General Public License (GPL)
|
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
|
||||||
URL: http://0pointer.de/lennart/projects/nss-mdns/
|
URL: http://0pointer.de/lennart/projects/nss-mdns/
|
||||||
Summary: Host Name Resolution via Multicast DNS (Zeroconf) for glibc
|
Summary: Host Name Resolution via Multicast DNS (Zeroconf) for glibc
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
|
Patch: unaligned.diff
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
PreReq: sed grep
|
PreReq: sed grep
|
||||||
Requires: avahi
|
Requires: avahi
|
||||||
@ -48,6 +49,7 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --libdir=/%{_lib}
|
%configure --libdir=/%{_lib}
|
||||||
@ -115,5 +117,7 @@ sed -i "/^hosts:/{$REMOVE_REGEXP}" etc/nsswitch.conf
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Apr 21 2007 - schwab@suse.de
|
||||||
|
- Fix unaligned access.
|
||||||
* Tue Feb 20 2007 - sbrabec@suse.cz
|
* Tue Feb 20 2007 - sbrabec@suse.cz
|
||||||
- New SuSE package, version 0.9.
|
- New SuSE package, version 0.9.
|
||||||
|
11
unaligned.diff
Normal file
11
unaligned.diff
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- src/nss.c
|
||||||
|
+++ src/nss.c
|
||||||
|
@@ -620,7 +620,7 @@
|
||||||
|
#ifdef MDNS_MINIMAL
|
||||||
|
|
||||||
|
/* Only query for 169.254.0.0/16 IPv4 in minimal mode */
|
||||||
|
- if ((af == AF_INET && ((ntohl(*(const uint32_t*) addr) & 0xFFFF0000UL) != 0xA9FE0000UL)) ||
|
||||||
|
+ if ((af == AF_INET && !(((const uint8_t*) addr)[0] == 169 && (((const uint8_t*) addr)[1] == 254))) ||
|
||||||
|
(af == AF_INET6 && !(((const uint8_t*) addr)[0] == 0xFE && (((const uint8_t*) addr)[1] >> 6) == 2))) {
|
||||||
|
|
||||||
|
*errnop = EINVAL;
|
Loading…
Reference in New Issue
Block a user