From: djm Date: Fri, 7 Jul 2017 00:10:15 +0000 (+0000) Subject: allow fetching lists from https:// URLs too X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a73dc8faecf1e5ca3e7b18750ad5274a49e22dd4;p=openbsd allow fetching lists from https:// URLs too --- diff --git a/libexec/spamd-setup/spamd-setup.c b/libexec/spamd-setup/spamd-setup.c index edba1b3abc7..eb2cb7dffe9 100644 --- a/libexec/spamd-setup/spamd-setup.c +++ b/libexec/spamd-setup/spamd-setup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamd-setup.c,v 1.49 2017/07/07 00:09:14 djm Exp $ */ +/* $OpenBSD: spamd-setup.c,v 1.50 2017/07/07 00:10:15 djm Exp $ */ /* * Copyright (c) 2003 Bob Beck. All rights reserved. @@ -315,7 +315,7 @@ open_file(char *method, char *file) if ((method == NULL) || (strcmp(method, "file") == 0)) return (open(file, O_RDONLY)); - if ((strcmp(method, "http") == 0) || + if (strcmp(method, "http") == 0 || strcmp(method, "https") == 0 || strcmp(method, "ftp") == 0) { if (asprintf(&url, "%s://%s", method, file) == -1) return (-1);