[PATCH setup] Accept sites using https:// and ftps:// protocols in mirrors.lst
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Jun 19 14:11:00 GMT 2017
On Jun 19 11:53, Jon Turney wrote:
> Also report when a line from mirrors.lst is being discarded due to a URL
> using an unknown protocol.
>
> Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
> ---
> site.cc | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/site.cc b/site.cc
> index b05657b..c33da36 100644
> --- a/site.cc
> +++ b/site.cc
> @@ -264,7 +264,9 @@ load_site_list (SiteList& theSites, char *theString)
> continue;
> /* Accept only the URL schemes we can understand. */
> if (strncmp(bol, "http://", 7) == 0 ||
> - strncmp(bol, "ftp://", 6) == 0)
> + strncmp(bol, "https://", 8) == 0 ||
> + strncmp(bol, "ftp://", 6) == 0 ||
> + strncmp(bol, "ftps://", 7) == 0)
> {
> char *semi = strchr (bol, ';');
> char *semi2 = NULL;
> @@ -306,6 +308,10 @@ load_site_list (SiteList& theSites, char *theString)
> //TODO: remove and remerge
> *i = newsite;
> }
> + else
> + {
> + Log (LOG_BABBLE) << "Discarding line '" << bol << "' due to unknown protocol" << endLog;
> + }
> }
> }
>
> --
> 2.12.3
ACK ACK ACK!!!
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20170619/fe3e3b17/attachment.sig>
More information about the Cygwin-apps
mailing list