From c6e5036f47280a929821c7c2b42ab69df4eb1a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Uhliarik?= Date: Thu, 29 Jan 2026 15:53:47 +0100 Subject: [PATCH] Clarify binding behavior of -t option. Configuration testing includes binding to configured listen addresses when opening referenced files. Resolves: RHEL-113229 --- ...Clarify-binding-behavior-of-t-option.patch | 37 +++++++++++++++++++ nginx.spec | 4 ++ 2 files changed, 41 insertions(+) create mode 100644 0006-Clarify-binding-behavior-of-t-option.patch diff --git a/0006-Clarify-binding-behavior-of-t-option.patch b/0006-Clarify-binding-behavior-of-t-option.patch new file mode 100644 index 0000000..dee159f --- /dev/null +++ b/0006-Clarify-binding-behavior-of-t-option.patch @@ -0,0 +1,37 @@ +From dc847f7aedf0b4f8bbf9d7f9ba983541c6ca88c9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Lubo=C5=A1=20Uhliarik?= +Date: Tue, 20 Jan 2026 19:27:05 +0100 +Subject: [PATCH] Clarify binding behavior of -t option. + +Configuration testing includes binding to configured listen addresses +when opening referenced files. +--- + man/nginx.8 | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/man/nginx.8 b/man/nginx.8 +index 10db3e6..64d9ae7 100644 +--- a/man/nginx.8 ++++ b/man/nginx.8 +@@ -25,7 +25,7 @@ + .\" SUCH DAMAGE. + .\" + .\" +-.Dd November 5, 2020 ++.Dd January 21, 2026 + .Dt NGINX 8 + .Os + .Sh NAME +@@ -98,7 +98,8 @@ but additionally dump configuration files to standard output. + Do not run, just test the configuration file. + .Nm + checks the configuration file syntax and then tries to open files +-referenced in the configuration file. ++referenced in the configuration file, including binding to configured ++listen addresses. + .It Fl V + Print the + .Nm +-- +2.44.0 + diff --git a/nginx.spec b/nginx.spec index 11cadb9..4b8b896 100644 --- a/nginx.spec +++ b/nginx.spec @@ -110,6 +110,10 @@ Patch3: 0004-Disable-ENGINE-support.patch # downstream patch - Compile perl module with O2 Patch4: 0005-Compile-perl-module-with-O2.patch +# https://issues.redhat.com/browse/RHEL-113229 +# upstream patch - https://github.com/nginx/nginx/pull/1089 +Patch5: 0006-Clarify-binding-behavior-of-t-option.patch + BuildRequires: make BuildRequires: gcc BuildRequires: gnupg2