forked from pool/systemd
Frederic Crozat
37527bb454
- version 206 , highlights: * Unit files now understand the new %v specifier which resolves to the kernel version string as returned by "uname-r". * "journalctl -b" may now be used to look for boot output of a specific boot. Try "journalctl -b -1" * Creation of "dead" device nodes has been moved from udev into kmod and tmpfiles. * The udev "keymap" data files and tools to apply keyboard specific mappings of scan to key codes, and force-release scan code lists have been entirely replaced by a udev "keyboard" builtin and a hwdb data file. - remove patches now in upstream - systemd now requires libkmod >=14 and cryptsetup >= 1.6.0 - systemd now require the kmod tool in addition to the library. - version 206 , highlights: * Unit files now understand the new %v specifier which resolves to the kernel version string as returned by "uname-r". * "journalctl -b" may now be used to look for boot output of a specific boot. Try "journalctl -b -1" * Creation of "dead" device nodes has been moved from udev into kmod and tmpfiles. * The udev "keymap" data files and tools to apply keyboard specific mappings of scan to key codes, and force-release scan code lists have been entirely replaced by a udev "keyboard" builtin and a hwdb data file. - remove patches now in upstream - systemd now requires libkmod >=14 and cryptsetup >= 1.6.0 - systemd now require the kmod tool in addition to the library. (forwarded request 184035 from elvigia) OBS-URL: https://build.opensuse.org/request/show/184036 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=416
25 lines
862 B
Diff
25 lines
862 B
Diff
From: Ludwig Nussel <ludwig.nussel@suse.de>
|
|
Date: Mon, 26 Nov 2012 09:49:42 +0100
|
|
Subject: avoid assertion if invalid address familily is passed to
|
|
gethostbyaddr_r (bnc#791101)
|
|
|
|
---
|
|
src/nss-myhostname/nss-myhostname.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- systemd-206.orig/src/nss-myhostname/nss-myhostname.c
|
|
+++ systemd-206/src/nss-myhostname/nss-myhostname.c
|
|
@@ -442,6 +442,12 @@ enum nss_status _nss_myhostname_gethostb
|
|
uint32_t local_address_ipv4 = LOCALADDRESS_IPV4;
|
|
const char *canonical = NULL, *additional = NULL;
|
|
|
|
+ if (af != AF_INET && af != AF_INET6) {
|
|
+ *errnop = EAFNOSUPPORT;
|
|
+ *h_errnop = NO_DATA;
|
|
+ return NSS_STATUS_UNAVAIL;
|
|
+ }
|
|
+
|
|
if (len != PROTO_ADDRESS_SIZE(af)) {
|
|
*errnop = EINVAL;
|
|
*h_errnop = NO_RECOVERY;
|