[isc-dhcp] Add patch to fix bug which caused log messages to also print to stderr in release builds (#1477)

This commit is contained in:
Joe LeVeque 2018-03-09 11:32:03 -08:00 committed by GitHub
parent 02b62ac9bb
commit 41418723a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From 2bb21fcf4a9ad7535867809c50d2cf0ba1088e17 Mon Sep 17 00:00:00 2001
From: Joe LeVeque <jolevequ@microsoft.com>
Date: Fri, 9 Mar 2018 01:43:35 +0000
Subject: [PATCH] [Bugfix] Don't print log messages to stderr in release builds
---
omapip/errwarn.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/omapip/errwarn.c b/omapip/errwarn.c
index 7c91d9d..aa74fd8 100644
--- a/omapip/errwarn.c
+++ b/omapip/errwarn.c
@@ -39,9 +39,9 @@
#include <syslog.h>
#ifdef DEBUG
-int log_perror = -1;
-#else
int log_perror = 1;
+#else
+int log_perror = 0;
#endif
void (*log_cleanup) (void);
--
2.1.4

View File

@ -2,3 +2,4 @@
0001-Customizable-Option-82-circuit-ID-and-remote-ID-fiel.patch
0002-Support-for-obtaining-name-of-physical-interface-tha.patch
0003-Support-for-loading-port-alias-map-file-to-replace-p.patch
0004-Bugfix-Don-t-print-log-messages-to-stderr-in-release.patch