[BACK]Return to fetch.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/fetch.c between version 1.182 and 1.183

version 1.182, 2019/12/08 23:43:53 version 1.183, 2019/12/09 00:45:34
Line 240 
Line 240 
 #ifndef SMALL  #ifndef SMALL
                 scheme = FILE_URL;                  scheme = FILE_URL;
 #endif /* !SMALL */  #endif /* !SMALL */
 #ifndef NOSSL  
         } else if (strncasecmp(newline, HTTPS_URL, sizeof(HTTPS_URL) - 1) == 0) {          } else if (strncasecmp(newline, HTTPS_URL, sizeof(HTTPS_URL) - 1) == 0) {
   #ifndef NOSSL
                 host = newline + sizeof(HTTPS_URL) - 1;                  host = newline + sizeof(HTTPS_URL) - 1;
                 ishttpsurl = 1;                  ishttpsurl = 1;
   #else
                   errx(1, "%s: No HTTPS support", newline);
   #endif /* !NOSSL */
 #ifndef SMALL  #ifndef SMALL
                 scheme = HTTPS_URL;                  scheme = HTTPS_URL;
 #endif /* !SMALL */  #endif /* !SMALL */
 #endif /* !NOSSL */  
         } else          } else
                 errx(1, "url_get: Invalid URL '%s'", newline);                  errx(1, "url_get: Invalid URL '%s'", newline);
   
Line 1266 
Line 1268 
                  * Try HTTP URL-style arguments first.                   * Try HTTP URL-style arguments first.
                  */                   */
                 if (strncasecmp(url, HTTP_URL, sizeof(HTTP_URL) - 1) == 0 ||                  if (strncasecmp(url, HTTP_URL, sizeof(HTTP_URL) - 1) == 0 ||
 #ifndef NOSSL  
                     /* even if we compiled without SSL, url_get will check */  
                     strncasecmp(url, HTTPS_URL, sizeof(HTTPS_URL) -1) == 0 ||                      strncasecmp(url, HTTPS_URL, sizeof(HTTPS_URL) -1) == 0 ||
 #endif /* !NOSSL */  
                     strncasecmp(url, FILE_URL, sizeof(FILE_URL) - 1) == 0) {                      strncasecmp(url, FILE_URL, sizeof(FILE_URL) - 1) == 0) {
                         redirect_loop = 0;                          redirect_loop = 0;
                         retried = 0;                          retried = 0;

Legend:
Removed from v.1.182  
changed lines
  Added in v.1.183