mirror of
https://github.com/curl/curl.git
synced 2025-09-15 00:22:42 +03:00
tool_getparam: accept variable expansion on file names too
Reported-by: PBudmark on github Fixes #12048 Closes #12055
This commit is contained in:
parent
38fbe8dbfe
commit
f2c8086ff1
|
@ -826,8 +826,9 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
||||||
struct curlx_dynbuf nbuf;
|
struct curlx_dynbuf nbuf;
|
||||||
bool replaced;
|
bool replaced;
|
||||||
|
|
||||||
if(aliases[hit].desc != ARG_STRING) {
|
if((aliases[hit].desc != ARG_STRING) &&
|
||||||
/* --expand on an option that isn't a string */
|
(aliases[hit].desc != ARG_FILENAME)) {
|
||||||
|
/* --expand on an option that isn't a string or a filename */
|
||||||
err = PARAM_EXPAND_ERROR;
|
err = PARAM_EXPAND_ERROR;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user