summaryrefslogtreecommitdiff
path: root/portdbc/fixups.patch
blob: c554eb6e269491d67733091656b49bf7b490805d (plain)
    1 Binary files portdbc-1.1-orig/portdbc and portdbc-1.1/portdbc differ
    2 diff -rupN portdbc-1.1-orig/portdbc.c portdbc-1.1/portdbc.c
    3 --- portdbc-1.1-orig/portdbc.c	2011-07-13 18:04:19.000000000 +0200
    4 +++ portdbc-1.1/portdbc.c	2017-07-09 17:41:44.244318646 +0200
    5 @@ -44,6 +44,9 @@ int printHttpFile(char *url)
    6      /* send all data to this function  */
    7      curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, writeCallback);
    8  
    9 +    /* 302 http -> https  */
   10 +    curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1L);
   11 +
   12      /* get it! */
   13      curl_easy_perform(curl_handle);
   14  
   15 @@ -254,7 +257,7 @@ int main(int argc, char** argv)
   16    xmlNode *r_node = NULL;
   17  
   18    char *url = NULL;
   19 -  char *portdb_url = "http://crux.nu/portdb/";
   20 +  char *portdb_url = "https://crux.nu/portdb/";
   21    char *tmpfile = "/tmp/.portdbc.xml";
   22  
   23    // use HOME directory when available

Generated by cgit