Skip to content
Snippets Groups Projects
Commit ebcaa3d5 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

warn about bad -z syntax

parent 60e26199
No related branches found
No related tags found
No related merge requests found
......@@ -2205,6 +2205,10 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
if(-1 == stat(nextarg, &statbuf)) {
/* failed, remove time condition */
config->timecond = CURL_TIMECOND_NONE;
fprintf(stderr,
"Warning: Illegal date format for -z/--timecond and not "
"a file name.\n"
" See curl_getdate(3) for valid date syntax.\n");
}
else {
/* pull the time out from the file */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment