]> sjero.net Git - wget/blobdiff - src/init.c
--no-match-server-timestamps -> --no-use-server-timestamps
[wget] / src / init.c
index 5a05d035cbb061885490c618de27dfa8e9dd2adc..16a4d9d29438e1bd288bd36ca9903fb6dcce1b10 100644 (file)
@@ -37,6 +37,15 @@ as that of the covered work.  */
 #endif
 #include <string.h>
 #include <errno.h>
+#include <limits.h>
+/* not all systems provide PATH_MAX in limits.h */
+#ifndef PATH_MAX
+# include <sys/param.h>
+# ifndef PATH_MAX
+#  define PATH_MAX MAXPATHLEN
+# endif
+#endif
+
 
 #ifdef HAVE_PWD_H
 # include <pwd.h>
@@ -246,6 +255,7 @@ static const struct {
   { "useproxy",         &opt.use_proxy,         cmd_boolean },
   { "user",             &opt.user,              cmd_string },
   { "useragent",        NULL,                   cmd_spec_useragent },
+  { "useservertimestamps", &opt.useservertimestamps, cmd_boolean },
   { "verbose",          NULL,                   cmd_spec_verbose },
   { "wait",             &opt.wait,              cmd_time },
   { "waitretry",        &opt.waitretry,         cmd_time },
@@ -344,6 +354,8 @@ defaults (void)
 #endif
   opt.locale = NULL;
   opt.encoding_remote = NULL;
+
+  opt.useservertimestamps = true;
 }
 \f
 /* Return the user's home directory (strdup-ed), or NULL if none is