]> sjero.net Git - wget/blobdiff - src/init.c
--no-match-server-timestamps
[wget] / src / init.c
index 5a05d035cbb061885490c618de27dfa8e9dd2adc..c04414a3b2fb63f66c6eaae590ed678fb8e11172 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>
@@ -188,6 +197,7 @@ static const struct {
   { "localencoding",    &opt.locale,            cmd_string },
   { "logfile",          &opt.lfilename,         cmd_file },
   { "login",            &opt.ftp_user,          cmd_string },/* deprecated*/
+  { "matchservertimestamps", &opt.matchservertimestamps, cmd_boolean },
   { "maxredirect",      &opt.max_redirect,      cmd_number },
   { "mirror",           NULL,                   cmd_spec_mirror },
   { "netrc",            &opt.netrc,             cmd_boolean },
@@ -344,6 +354,8 @@ defaults (void)
 #endif
   opt.locale = NULL;
   opt.encoding_remote = NULL;
+
+  opt.matchservertimestamps = true;
 }
 \f
 /* Return the user's home directory (strdup-ed), or NULL if none is