ports/net/samba47/files/patch-lib__replace__wscript
Timur I. Bakeyev 617b5aaaac Security update for samba45, samba46, samba47 ports to address CVE-2018-1050 and CVE-2018-1057.
As AD DC doesn't work in samba46 and was broken again in samba 4.7.4 - the attack vector is quite narrow.

Security:	CVE-2018-1050
		CVE-2018-1057
Sponsored by:	iXsystems Inc.
2018-03-13 21:00:04 +00:00

11 lines
427 B
Text

--- lib/replace/wscript.orig 2017-08-24 11:27:53 UTC
+++ lib/replace/wscript
@@ -81,7 +81,7 @@ def configure(conf):
conf.CHECK_HEADERS('sys/atomic.h')
conf.CHECK_HEADERS('libgen.h')
- if conf.CHECK_CFLAGS('-Wno-format-truncation'):
+ if conf.CHECK_CFLAGS(['-Wno-format-truncation'] + conf.env.WERROR_CFLAGS):
conf.define('HAVE_WNO_FORMAT_TRUNCATION', '1')
# Check for process set name support