1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 07:38:49 -05:00

warn about bad -z syntax

This commit is contained in:
Daniel Stenberg 2005-05-12 07:28:03 +00:00
parent 60e26199a2
commit ebcaa3d579

View File

@ -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 */