Skip to content

[2.4.x] apachectl: Pass the arguments of "configtest" on to httpd. - #1157

Merged
arturobernalg merged 1 commit into
apache:2.4.xfrom
arturobernalg:backport/69950-apachectl-configtest-24x
Dec 4, 2026
Merged

arturobernalg merged 1 commit into
apache:2.4.xfrom
arturobernalg:backport/69950-apachectl-configtest-24x

Conversation

@arturobernalg

Copy link
Copy Markdown
Member

apachectl configtest ran "httpd -t" and dropped any further argument, so "apachectl configtest -f file" tested the default configuration instead of the given file. start, stop and the other commands already pass their arguments on; configtest now does too, and without arguments it behaves as before.

Backports the trunk fix (f11119e, PR #869) to 2.4.x unchanged; apachectl.in's ACMD/ARGV setup is identical on both branches. Verified against a fake httpd that echoes its argv, old vs. patched script, including arguments with spaces and -D 'A*B' style values.

PR 69950.

[Arturo Bernal]


[x] This PR does not report or address a security vulnerability.
[x] Code follows the httpd style guide.
[ ] New log messages (n/a, no new log messages)
[x] changes-entries/69950.txt included.
[ ] pyhttpd tests (n/a, shell script fix; verified manually against a fake httpd, see commit message)

apachectl configtest ran "httpd -t" and dropped any further argument,
so "apachectl configtest -f file" tested the default configuration
instead of the given file. start, stop and the other commands already
pass their arguments on; configtest now does too, and without
arguments it behaves as before.

Backports the trunk fix (f11119e, PR apache#869) to 2.4.x unchanged;
apachectl.in's ACMD/ARGV setup is identical on both branches. Verified
against a fake httpd that echoes its argv, old vs. patched script,
including arguments with spaces and -D 'A*B' style values.

PR 69950.

[Arturo Bernal]
@arturobernalg
arturobernalg merged commit 7cdd4d9 into apache:2.4.x Dec 4, 2026
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants