curl-curl/tests/data/test774
Daniel Stenberg 9e198618de
tool_parsecfg: detect and error on recursive --config use
The config file parser now has a maximum level of inclusions allowed (5)
to detect and prevent recursive inclusions of itself leading to badness.

Bonus: clean up return code handling from the config parser.

Test 774 verifies
Closes #19168
2025-10-21 10:11:43 +02:00

26 lines
310 B
Plaintext

<testcase>
<info>
<keywords>
--config
</keywords>
</info>
<client>
<name>
config file recursively including itself
</name>
<file name="%LOGDIR/cmd">
--config %LOGDIR/cmd
</file>
<command>
http://%HOSTIP:%HTTPPORT/ -K %LOGDIR/cmd
</command>
</client>
<verify>
<errorcode>
2
</errorcode>
</verify>
</testcase>