Skip to content

Commit a73dc8f

Browse files
committed
allow fetching lists from https:// URLs too
1 parent 2b572b0 commit a73dc8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libexec/spamd-setup/spamd-setup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: spamd-setup.c,v 1.49 2017/07/07 00:09:14 djm Exp $ */
1+
/* $OpenBSD: spamd-setup.c,v 1.50 2017/07/07 00:10:15 djm Exp $ */
22

33
/*
44
* Copyright (c) 2003 Bob Beck. All rights reserved.
@@ -315,7 +315,7 @@ open_file(char *method, char *file)
315315

316316
if ((method == NULL) || (strcmp(method, "file") == 0))
317317
return (open(file, O_RDONLY));
318-
if ((strcmp(method, "http") == 0) ||
318+
if (strcmp(method, "http") == 0 || strcmp(method, "https") == 0 ||
319319
strcmp(method, "ftp") == 0) {
320320
if (asprintf(&url, "%s://%s", method, file) == -1)
321321
return (-1);

0 commit comments

Comments
 (0)