Marius Tomaschewski
a66d02d4db
Modify the DDNS handling code. In a previous patch we added logging code to the DDNS handling. This code included a bug that caused it to attempt to dereference a NULL pointer and eventually segfault. While reviewing the code as we addressed this problem, we determined that some of the updates to the lease structures would not work as planned since the structures being updated were in the process of being freed: these updates were removed. In addition we removed an incorrect call to the DDNS removal function that could cause a failure during the removal of DDNS information from the DNS server. Thanks to Jasper Jongmans for reporting this issue. ([ISC-Bugs #27078], CVE: CVE-2011-4868, bnc#741239) - Fixed close-on-exec patch to not set it on stderr (bnc#732910) - Fixed incorrect "a" array type option parsing causing to discard e.g. classless static routes from lease file [reported as ISC-Bug 27289] and zero-length option parsing such as dhcp6.rapid-commit in dhclient6 [reported as ISC-Bug 27314] (bnc#739696). - Fixed dhclient to include its pid number in syslog messages. - Fixed to use P2 in the spec version, not in the release tag. OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=85
30 lines
888 B
Diff
30 lines
888 B
Diff
From 1f30e4707e13cb09315cbda2cf36bae099285a79 Mon Sep 17 00:00:00 2001
|
|
From: Marius Tomaschewski <mt@suse.de>
|
|
Date: Thu, 5 Jan 2012 16:25:18 +0100
|
|
Subject: [PATCH] Use pid number in dhclient log messages
|
|
|
|
Troubleshooting help to make it visible which client is reporting
|
|
as there may be more than one running (v4 + v6 multiple interfaces).
|
|
|
|
Signed-off-by: Marius Tomaschewski <mt@suse.de>
|
|
---
|
|
client/dhclient.c | 2 +-
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/client/dhclient.c b/client/dhclient.c
|
|
index ff5ede5..bee8e1d 100644
|
|
--- a/client/dhclient.c
|
|
+++ b/client/dhclient.c
|
|
@@ -141,7 +141,7 @@ main(int argc, char **argv) {
|
|
else if (fd != -1)
|
|
close(fd);
|
|
|
|
- openlog("dhclient", LOG_NDELAY, LOG_DAEMON);
|
|
+ openlog("dhclient", LOG_NDELAY | LOG_PID, LOG_DAEMON);
|
|
|
|
#if !(defined(DEBUG) || defined(__CYGWIN32__))
|
|
setlogmask(LOG_UPTO(LOG_INFO));
|
|
--
|
|
1.7.7
|
|
|