~ubuntu-branches/ubuntu/precise/wget/precise-proposed

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2005-10-13 16:59:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051013165903-3e12j4gn6znkhmdb
Tags: 1.10.2-1
new upstream release which fixes a NTLM Buffer Overflow Vulnerability

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
 
75
75
struct options opt;
76
76
 
77
 
extern LARGE_INT total_downloaded_bytes;
 
77
extern SUM_SIZE_INT total_downloaded_bytes;
78
78
extern char *version_string;
79
79
 
80
80
extern struct cookie_jar *wget_cookie_jar;
144
144
    OPT__DONT_REMOVE_LISTING,
145
145
    OPT__EXECUTE,
146
146
    OPT__NO,
147
 
    OPT__PARENT,
 
147
    OPT__PARENT
148
148
  } type;
149
149
  const void *data;             /* for standard options */
150
150
  int argtype;                  /* for non-standard options */
601
601
    N_("\
602
602
  -K,  --backup-converted   before converting file X, back up as X.orig.\n"),
603
603
    N_("\
604
 
  -m,  --mirror             shortcut option equivalent to -r -N -l inf -nr.\n"),
 
604
  -m,  --mirror             shortcut for -N -r -l inf --no-remove-listing.\n"),
605
605
    N_("\
606
606
  -p,  --page-requisites    get all images, etc. needed to display HTML page.\n"),
607
607
    N_("\
896
896
        output_stream = stdout;
897
897
      else
898
898
        {
899
 
          struct_stat st;
 
899
          struct_fstat st;
900
900
          output_stream = fopen (opt.output_document,
901
901
                                 opt.always_rest ? "ab" : "wb");
902
902
          if (output_stream == NULL)
970
970
    {
971
971
      logprintf (LOG_NOTQUIET,
972
972
                 _("\nFINISHED --%s--\nDownloaded: %s bytes in %d files\n"),
973
 
                 time_str (NULL), with_thousand_seps_large (total_downloaded_bytes),
 
973
                 time_str (NULL),
 
974
                 with_thousand_seps_sum (total_downloaded_bytes),
974
975
                 opt.numurls);
975
976
      /* Print quota warning, if exceeded.  */
976
977
      if (opt.quota && total_downloaded_bytes > opt.quota)
977
978
        logprintf (LOG_NOTQUIET,
978
979
                   _("Download quota (%s bytes) EXCEEDED!\n"),
979
 
                   with_thousand_seps_large (opt.quota));
 
980
                   with_thousand_seps_sum (opt.quota));
980
981
    }
981
982
 
982
983
  if (opt.cookies_output)