N_("\
FTP options:\n"),
N_("\
- --no-remove-listing don't remove `.listing' files.\n"),
+ --no-remove-listing don't remove `.listing' files.\n"),
N_("\
- --no-glob turn off FTP file name globbing.\n"),
+ --no-glob turn off FTP file name globbing.\n"),
N_("\
- --passive-ftp use the \"passive\" transfer mode.\n"),
+ --passive-ftp use the \"passive\" transfer mode.\n"),
N_("\
- --retr-symlinks when recursing, get linked-to files (not dir).\n"),
+ --retr-symlinks when recursing, get linked-to files (not dir).\n"),
N_("\
--preserve-permissions preserve remote file permissions.\n"),
"\n",
print_usage ();
exit (1);
}
+#ifdef ENABLE_IPV6
if (opt.ipv4_only && opt.ipv6_only)
{
printf (_("Cannot specify both --inet4-only and --inet6-only.\n"));
print_usage ();
exit (1);
}
+#endif
nurl = argc - optind;
if (!nurl && !opt.input_filename)
/* Open the output filename if necessary. */
if (opt.output_document)
{
+ extern FILE *output_stream;
+ extern int output_stream_regular;
+
if (HYPHENP (opt.output_document))
- opt.dfp = stdout;
+ output_stream = stdout;
else
{
struct stat st;
- opt.dfp = fopen (opt.output_document, opt.always_rest ? "ab" : "wb");
- if (opt.dfp == NULL)
+ output_stream = fopen (opt.output_document,
+ opt.always_rest ? "ab" : "wb");
+ if (output_stream == NULL)
{
perror (opt.output_document);
exit (1);
}
- if (fstat (fileno (opt.dfp), &st) == 0 && S_ISREG (st.st_mode))
- opt.od_known_regular = 1;
+ if (fstat (fileno (output_stream), &st) == 0 && S_ISREG (st.st_mode))
+ output_stream_regular = 1;
}
}