Ticket #33743: patch-src-formats.c.diff

File patch-src-formats.c.diff, 847 bytes (added by janstary (Jan Starý), 13 years ago)

relace wget(1) with ftp(1)

  • src/formats.c

    old new static int sox_checkformat(sox_format_t  
    348348  return SOX_SUCCESS;
    349349}
    350350
    351 static sox_bool is_url(char const * text) /* detects only wget-supported URLs */
     351static sox_bool is_url(char const * text)
    352352{
    353353  return !(
    354354      strncasecmp(text, "http:" , (size_t)5) &&
    static FILE * xfopen(char const * identi 
    385385  else if (is_url(identifier)) {
    386386    FILE * f = NULL;
    387387#ifdef HAVE_POPEN
    388     char const * const command_format = "wget --no-check-certificate -q -O- \"%s\"";
     388    char const * const command_format = "ftp -a -V -o - \"%s\"";
    389389    char * command = lsx_malloc(strlen(command_format) + strlen(identifier));
    390390    sprintf(command, command_format, identifier);
    391391    f = popen(command, POPEN_MODE);