projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60e2619
)
warn about bad -z syntax
author
Daniel Stenberg
<daniel@haxx.se>
Thu, 12 May 2005 07:28:03 +0000
(07:28 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 12 May 2005 07:28:03 +0000
(07:28 +0000)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
8af8139
..
f5e4e17
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-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 */