]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_operate: refuse (--data or --form) and --continue-at combo
authorDaniel Stenberg <daniel@haxx.se>
Sun, 7 May 2023 22:14:33 +0000 (00:14 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 May 2023 12:10:44 +0000 (14:10 +0200)
commit39a33fcac0e4530ef0c60d3319504e078ea2f137
treec517936e7c16271498e8fafc8de2c74202ad73b9
parentfb7886b9c95009a837f584caf4943a455f3daa60
tool_operate: refuse (--data or --form) and --continue-at combo

libcurl assumes that a --continue-at resumption is done to continue an
upload using the read callback and neither --data nor --form use
that and thus won't do what the user wants. Whatever the user wants
with this strange combination.

Add test 426 to verify.

Reported-by: Smackd0wn on github
Fixes #11081
Closes #11083
src/tool_operate.c
tests/data/Makefile.inc
tests/data/test426 [new file with mode: 0644]